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

[15.0][MIG] sale_global_discount #2242

Closed
wants to merge 35 commits into from

Conversation

kirca
Copy link
Contributor

@kirca kirca commented Oct 25, 2022

No description provided.

@kirca
Copy link
Contributor Author

kirca commented Oct 25, 2022

Depends on OCA/account-invoicing#1271

Copy link
Contributor

@ferran-S73 ferran-S73 left a comment

Choose a reason for hiding this comment

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

LGTM

@ferran-S73
Copy link
Contributor

Please @kirca run pre-commit locally and fix the issues

@kirca
Copy link
Contributor Author

kirca commented Jan 23, 2023

@ferran-S73 we need to merge first OCA/account-invoicing#1271

@jalzaga
Copy link

jalzaga commented Feb 10, 2023

Hi @kirca How is it progressing the migration to v15? are there any issues to migrate it and expectations?

@kirca kirca force-pushed the 15.0-mig-sale_global_discount branch from 0a504bd to 1c95b35 Compare February 13, 2023 17:40
chienandalu and others added 22 commits February 13, 2023 18:44
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
omar7r and others added 10 commits February 13, 2023 18:44
…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!
@kirca kirca force-pushed the 15.0-mig-sale_global_discount branch from 1c95b35 to 140fcba Compare February 13, 2023 17:44
@kirca kirca force-pushed the 15.0-mig-sale_global_discount branch from 140fcba to 0e8cf05 Compare February 14, 2023 07:29
@kirca kirca force-pushed the 15.0-mig-sale_global_discount branch from 0e8cf05 to ec62d6a Compare February 14, 2023 07:33
@kirca
Copy link
Contributor Author

kirca commented Feb 14, 2023

Hi @jalzaga , this is done from my side.

@rp-landoo
Copy link

Runboat is not working
Could you actavate it to try this PR?
Thanks!

@pedrobaeza
Copy link
Member

@kirca I'm superseding this PR in favor of #2634, as I can't write to your org branch. It's respecting your attribution, just adding the things exposed in the main comment. In my local tests, the roundings are a bit different. I think it's a patch upstream since this PR lands here, but waiting for the CI results.

Closing this one. Thanks for the initial work.

@pedrobaeza pedrobaeza closed this Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet