-
-
Notifications
You must be signed in to change notification settings - Fork 714
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
[16.0][MIG] product_code_mandatory #1575
Conversation
* [ADD] Module to set the internal reference of the product as required.
Currently translated at 100.0% (3 of 3 strings) Translation: product-attribute-12.0/product-attribute-12.0-product_code_mandatory Translate-URL: https://translation.odoo-community.org/projects/product-attribute-12-0/product-attribute-12-0-product_code_mandatory/pt/
Currently translated at 83.3% (5 of 6 strings) Translation: product-attribute-14.0/product-attribute-14.0-product_code_mandatory Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_code_mandatory/fr/
Currently translated at 83.3% (5 of 6 strings) Translation: product-attribute-14.0/product-attribute-14.0-product_code_mandatory Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_code_mandatory/fr_FR/
Currently translated at 100.0% (2 of 2 strings) Translation: product-attribute-15.0/product-attribute-15.0-product_code_mandatory Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_code_mandatory/ca/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-15.0/product-attribute-15.0-product_code_mandatory Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_code_mandatory/
Currently translated at 100.0% (3 of 3 strings) Translation: product-attribute-15.0/product-attribute-15.0-product_code_mandatory Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_code_mandatory/it/
LGTM Functional +1 @agyamuta @pedrocasi |
Hey @mariobinhex could you squash migration commits? |
Move setUp test class to setUpClass for better performant [ADD] product_code_mandatory: Add contributors [IMP] product_cost_security: clarify product cost edit required permissions As seen in OCA/margin-analysis#198 (review), a user needs some other group that grants them permissions for editing products, apart from this one that allows them to edit product cost. This might not seem obvious to the user, so it's better to document it. Btw, I renamed the groups to be shorter. Still easy to understand, now that groups are grouped (🥁). @moduon MT-5158 [UPD] Update product_cost_security.pot [BOT] post-merge updates Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-16.0/product-attribute-16.0-product_cost_security Translate-URL: https://translation.odoo-community.org/projects/product-attribute-16-0/product-attribute-16-0-product_cost_security/
bdccb55
to
e0aa2d2
Compare
Done! I have maintained the pre-commit and migration |
@OCA/product-maintainers could you please merge? |
@rafaelbn Hello Rafal, can you please check this PR? |
@rafaelbn hi Rafael, can you please check this PR and merge? |
@simahawk hi Simone, can you please check this PR and merge? Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contrib.
Please check your history.
The migration commit contains changes to other modules and there's a merge commit that shouldn't be there.
Please, rebase on 16.0 instead and re-apply the migration commits.
return self.env["ir.sequence"].next_by_code("product.default.code") | ||
|
||
default_code = fields.Char( | ||
"Internal Reference", index=True, default=_get_default_code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Internal Reference", index=True, default=_get_default_code | |
"Internal Reference", index=True, default=lambda self: self._get_default_code() |
To be done in a separated commit that can be back/fwd ported
from odoo.tests.common import TransactionCase | ||
|
||
|
||
class TestProductCode(TransactionCase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from odoo.tests.common import TransactionCase | |
class TestProductCode(TransactionCase): | |
from odoo.tests.common import BaseCommon | |
class TestProductCode(BaseCommon): |
to disable tracking
/ocabot migration product_code_mandatory |
Hi @MarioLM-23 |
Improve test classes with setUpClass.
Last PR closed of migration module: #1237.
Checked two last issues.