Skip to content

[17.0][MIG] sale_margin_security: Migration to version 17.0#228

Merged
OCA-git-bot merged 22 commits into
OCA:17.0from
Tecnativa:17.0-mig-sale_margin_security
Feb 14, 2025
Merged

[17.0][MIG] sale_margin_security: Migration to version 17.0#228
OCA-git-bot merged 22 commits into
OCA:17.0from
Tecnativa:17.0-mig-sale_margin_security

Conversation

@carlos-lopez-tecnativa

@carlos-lopez-tecnativa carlos-lopez-tecnativa commented Jan 29, 2025

Copy link
Copy Markdown
Contributor

chienandalu and others added 22 commits February 12, 2025 09:17
In sale_margin, when the line already exists, the purchase_price
is computed with the product onchange method, so if the user doesn't
have the field available in the view it's not going to get the right
price. This should be fixed in v13 with the new compute fields
possibilities.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: margin-analysis-15.0/margin-analysis-15.0-sale_margin_security
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-15-0/margin-analysis-15-0-sale_margin_security/
Currently translated at 100.0% (3 of 3 strings)

Translation: margin-analysis-16.0/margin-analysis-16.0-sale_margin_security
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-sale_margin_security/es/
Set group_sale_margin_security in all sensible fields.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: margin-analysis-16.0/margin-analysis-16.0-sale_margin_security
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-sale_margin_security/
Currently translated at 85.7% (6 of 7 strings)

Translation: margin-analysis-16.0/margin-analysis-16.0-sale_margin_security
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-sale_margin_security/es/
Both modules do essentially the same thing: apply a restriction over product costs. Thus, it makes sense to share the same permission groups.

This refactor, that depends on OCA/product-attribute#1538, improves the module readme and makes `sale_margin_security` auto-installable addon when `product_cost_security` is found.

A migration script is provided to make sure the same users still retain the same permissions.

@moduon MT-5158
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: margin-analysis-16.0/margin-analysis-16.0-sale_margin_security
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-sale_margin_security/
Currently translated at 100.0% (7 of 7 strings)

Translation: margin-analysis-16.0/margin-analysis-16.0-sale_margin_security
Translate-URL: https://translation.odoo-community.org/projects/margin-analysis-16-0/margin-analysis-16-0-sale_margin_security/it/
@carlos-lopez-tecnativa
carlos-lopez-tecnativa force-pushed the 17.0-mig-sale_margin_security branch from 43b1b89 to b08ebb8 Compare February 12, 2025 14:21

@CarlosRoca13 CarlosRoca13 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! Please remove the last commit and rebase 😄

@carlos-lopez-tecnativa
carlos-lopez-tecnativa force-pushed the 17.0-mig-sale_margin_security branch from b08ebb8 to c0d27ed Compare February 13, 2025 10:54

@marcelsavegnago marcelsavegnago left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration sale_margin_security
/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 17.0-ocabot-merge-pr-228-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Feb 14, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Feb 14, 2025
10 tasks
@OCA-git-bot
OCA-git-bot merged commit 7d02f79 into OCA:17.0 Feb 14, 2025
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@pedrobaeza
pedrobaeza deleted the 17.0-mig-sale_margin_security branch February 14, 2025 19:22
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.