Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][MIG] sale_blanket_order #1865

Merged
merged 28 commits into from
Feb 3, 2022

Conversation

tafaRU
Copy link
Member

@tafaRU tafaRU commented Jan 13, 2022

No description provided.

andreparames and others added 26 commits January 12, 2022 17:28
When duplicating a confirmed blanket order, the new copy shouldn't
keep the state nor the sequence number (name).
Currently translated at 7.3% (9 of 123 strings)

Translation: sale-workflow-11.0/sale-workflow-11.0-sale_blanket_order
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-11-0/sale-workflow-11-0-sale_blanket_order/de/
Steps to reproduce:

* create and confirm a blanket order (BO) with (product A, qty 30) and (product B, qty 20)
* from the BO create a SO with (product A, qty 10) and (product B, qty 10)
* from the BO create a SO with (product A, qty 20) and (product B, qty 0)
* from the BO create another SO with (product B, qty 10)

Current behavior:

It raises the exception "The sale has already been completed.".

Expected behavior:

No exception is raised.
Currently translated at 100.0% (154 of 154 strings)

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_blanket_order
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_blanket_order/es/
Currently translated at 7.1% (11 of 154 strings)

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_blanket_order
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_blanket_order/de/
Currently translated at 53.9% (83 of 154 strings)

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_blanket_order
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_blanket_order/de/
Currently translated at 100.0% (154 of 154 strings)

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_blanket_order
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_blanket_order/de/
Currently translated at 100.0% (154 of 154 strings)

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_blanket_order
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_blanket_order/de/
* Allow to select an analitic account in the blanket order. It
  will be passed on to the SO.
* Allow to select analytic tags on blanket order lines. They will
  be passed to the SO lines.
* Source document was not being filled in SO created from a
  blanket order.
@tafaRU
Copy link
Member Author

tafaRU commented Jan 13, 2022

Travis error seems not related to this module but to sale_shipping_info_helper (ref link). I'm checking it.

@tafaRU
Copy link
Member Author

tafaRU commented Jan 13, 2022

@janikvonrotz could you please review it?

@rousseldenis
Copy link
Sponsor Contributor

/ocabot migration sale_blanket_order

@jado95
Copy link

jado95 commented Jan 27, 2022

Hi @tafaRU , when i add product on sale blanket order line, the tax added is wrong. It add credit tax and not debit tax. Is only my problem?

@francesco-ooops
Copy link
Contributor

Hi @tafaRU , when i add product on sale blanket order line, the tax added is wrong. It add credit tax and not debit tax. Is only my problem?

This issue was referenced also in #1493 and #960 but I never understood why supplier tax is used

@tafaRU
Copy link
Member Author

tafaRU commented Jan 31, 2022

when i add product on sale blanket order line, the tax added is wrong. It add credit tax and not debit tax. Is only my problem?

@jado95, this behaviour should be fixed in d27bb6f Are you testing also including this latter?

Copy link
Contributor

@francesco-ooops francesco-ooops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on both runbot and runboat and tax displayed is sales one (correct)

Copy link
Contributor

@fredzamoabg fredzamoabg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jado95
Copy link

jado95 commented Feb 3, 2022

when i add product on sale blanket order line, the tax added is wrong. It add credit tax and not debit tax. Is only my problem?

@jado95, this behaviour should be fixed in d27bb6f Are you testing also including this latter?

Perfect, with that commit is ok for me

@rousseldenis
Copy link
Sponsor Contributor

@tafaRU Have you found the problem with Travis ?

@tafaRU
Copy link
Member Author

tafaRU commented Feb 3, 2022

@tafaRU Have you found the problem with Travis ?

Hi @rousseldenis! Unfortunately not yet, today I should get back to working on it.

@tafaRU
Copy link
Member Author

tafaRU commented Feb 3, 2022

@rousseldenis finally I found it (see 2da2b64) ! Could we merge now? What do you think?

@rousseldenis
Copy link
Sponsor Contributor

@rousseldenis finally I found it (see 2da2b64) ! Could we merge now? What do you think?

Seems legit

@rousseldenis
Copy link
Sponsor Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 14.0-ocabot-merge-pr-1865-by-rousseldenis-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 66c8bdc into OCA:14.0 Feb 3, 2022
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 57e0cda. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.