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][OU-ADD] sale_order_margin_percent: Merged sale_order_margin_percent to sale_margin. #3217

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

victoralmau
Copy link
Member

Merged sale_order_margin_percent to sale_margin

@Tecnativa

@OCA-git-bot
Copy link
Contributor

Hi @MiquelRForgeFlow, @StefanRijnhart, @pedrobaeza,
some modules you are maintaining are being modified, check this out!

@victoralmau victoralmau changed the title [14.0][OU-ADD] sale_revert_done: Merged sale_order_margin_percent to sale_margin. [14.0][OU-ADD] sale_order_margin_percent: Merged sale_order_margin_percent to sale_margin. Apr 6, 2022
@pedrobaeza pedrobaeza added this to the 14.0 milestone Apr 6, 2022
@pedrobaeza
Copy link
Member

@sergio-teruel I think the read_group part is missing on core for proper percentage average, isn't it? Should we keep the OCA module?

@sergio-teruel
Copy link

@pedrobaeza This module has not add code to report, so is OK.

But @victoralmau please you must create a pre-migration script to pre-create the fields and compute data by sql queries because the percent fields in OCA module are computed and in Odoo core are store. This will do that in a database migration we have a great performance.

@victoralmau
Copy link
Member Author

@pedrobaeza This module has not add code to report, so is OK.

But @victoralmau please you must create a pre-migration script to pre-create the fields and compute data by sql queries because the percent fields in OCA module are computed and in Odoo core are store. This will do that in a database migration we have a great performance.

Ok, I think that's a good suggestion. Checking sale_margin addon I see that this improvement is already implemented at #3096.

@sergio-teruel
Copy link

Thanks @victoralmau

@pedrobaeza pedrobaeza merged commit af2f237 into OCA:14.0 Apr 6, 2022
@pedrobaeza pedrobaeza deleted the 14.0-mig-sale_order_margin_percent branch April 6, 2022 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants