Skip to content

[18.0][MIG] sale_global_discount (sps)#3896

Merged
OCA-git-bot merged 51 commits intoOCA:18.0from
Studio73:18.0-mig-sale_global_discount-2
Sep 16, 2025
Merged

[18.0][MIG] sale_global_discount (sps)#3896
OCA-git-bot merged 51 commits intoOCA:18.0from
Studio73:18.0-mig-sale_global_discount-2

Conversation

@eugenios73
Copy link
Copy Markdown
Contributor

@eugenios73 eugenios73 commented Sep 12, 2025

chienandalu and others added 30 commits September 12, 2025 12:29
Currently translated at 100.0% (6 of 6 strings)

Translation: sale-workflow-11.0/sale-workflow-11.0-sale_global_discount
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-11-0/sale-workflow-11-0-sale_global_discount/es/
Not all taxes combinations are possible with global discounts when they are later
invoiced and posted, so we need to constraint them early.

OCA/account-invoicing#745 addresses the problem at invoice level, posting correctly
taxes for supported cases, and constraining the rest.

We apply here the same constraints at sales order level. Existing tests have been
changed because they were using one of the forbidden taxes combination, and 2 new
tests have been added for covering the new constraints.
* Standard procedure
* Code adaptation
* README regeneration
* Tests adaptation

[UPD] Update sale_global_discount.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_global_discount
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_global_discount/

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

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

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_global_discount
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_global_discount/pt/
The tuple has changed from 4 to 6 elements.

[UPD] Update sale_global_discount.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_global_discount
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_global_discount/
Only global discount managers can set global discounts

[UPD] Update sale_global_discount.pot
Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_global_discount
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_global_discount/
[UPD] Update sale_global_discount.pot
Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_global_discount
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_global_discount/

[UPD] Update sale_global_discount.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

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

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_global_discount
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_global_discount/es/
[UPD] Update sale_global_discount.pot

[UPD] README.rst
This one is not present anymore in this version.
…sts to prevent errors if company have default currency distinct to default priceslist
…e other standard computed fields in same method are
Currently translated at 100.0% (13 of 13 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_global_discount
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_global_discount/it/
…of base_global_discount

In this way we also include the following configuration step:
* Go to *Settings > Users*, choose yours and set *Manage Global Discounts*

Without this *Global Discounts* doesn't show up!
Currently translated at 100.0% (12 of 12 strings)

Translation: sale-workflow-17.0/sale-workflow-17.0-sale_global_discount
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_global_discount/ca/
@eugenios73 eugenios73 force-pushed the 18.0-mig-sale_global_discount-2 branch 4 times, most recently from 2cb24d9 to 00f6ac9 Compare September 12, 2025 11:19
Copy link
Copy Markdown
Member

@mymage mymage left a comment

Choose a reason for hiding this comment

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

Functional OK

@rousseldenis
Copy link
Copy Markdown
Contributor

/ocabot migration sale_global_discount

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Sep 15, 2025
@eugenios73 eugenios73 force-pushed the 18.0-mig-sale_global_discount-2 branch 2 times, most recently from 06b0bde to e434783 Compare September 16, 2025 07:14
Copy link
Copy Markdown
Contributor

@Borruso Borruso left a comment

Choose a reason for hiding this comment

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

LGTM

@eugenios73 eugenios73 force-pushed the 18.0-mig-sale_global_discount-2 branch from e434783 to 689d535 Compare September 16, 2025 14:42
@eugenios73 eugenios73 force-pushed the 18.0-mig-sale_global_discount-2 branch from 689d535 to 84c26ce Compare September 16, 2025 14:48
@eugenios73
Copy link
Copy Markdown
Contributor Author

Hi @rousseldenis , Can you merge this PR if you see it correct? Please

@gurneyalex
Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-3896-by-gurneyalex-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit a753296 into OCA:18.0 Sep 16, 2025
9 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 2573c93. 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.