-
-
Notifications
You must be signed in to change notification settings - Fork 391
[17.0][MIG] barcodes_generator_product: Migration to 17.0 #620
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
[17.0][MIG] barcodes_generator_product: Migration to 17.0 #620
Conversation
29753e8 to
52d0633
Compare
|
@luisg123v Could you please review. |
| <field | ||
| name="groups_id" | ||
| eval="[ | ||
| (4, ref('product.group_product_variant')), |
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.
Use the Command syntax
Same in demo/product.xml
| class Tests(TransactionCase): | ||
| """Tests 'Barcodes Generator for Products'""" | ||
|
|
||
| def setUp(self): |
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.
setUpClass
52d0633 to
b81c11e
Compare
|
@luisg123v ready for review. |
|
Hi @luisg123v @pedrobaeza this is ready for review |
luisg123v
left a comment
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.
LGTM 👍
|
@isaako34 , could you make the following tasks?
Thanks for this migration! |
Hi @dalonsod , I don't understand what you want to do with your second comment. The migration must have all the commit history |
|
@desdelinux administrative commits (the ones done by bots) should be squashed, it's documented in the process on how bring history. |
e0844ed to
ab3d3be
Compare
|
/ocabot migration barcodes_generator_product |
* Rename manifest * Change openerp references to odoo * Bump version * Fix spelling errors and add product avatar to icon * Remove product_barcode_generator
Currently translated at 94.1% (16 of 17 strings) Translation: stock-logistics-barcode-16.0/stock-logistics-barcode-16.0-barcodes_generator_product Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-16-0/stock-logistics-barcode-16-0-barcodes_generator_product/fr/
Currently translated at 100.0% (17 of 17 strings) Translation: stock-logistics-barcode-16.0/stock-logistics-barcode-16.0-barcodes_generator_product Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-16-0/stock-logistics-barcode-16-0-barcodes_generator_product/it/
…le_id, to avoid an OWL error 'TypeError: record is undefined'. Remark : It doesn't makes sense to edit barcode rule via product / template, as it should be managed via barcode nomenclature form view
0c098d0 to
377f8e6
Compare
- Migrate views using the module `views_migration_v17` - Remove the 'priority' field in views. - Remove the 'replace' attribute from views and apply the 'after' attribute instead. - Migrate setUp to setUpClass. - Apply command syntax. - Fix the unordered list in DESCRIPTION.md and README.rst files.
377f8e6 to
1399a74
Compare
legalsylvain
left a comment
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.
a minor remark inline. Otherwise, LGTM . Thanks !
|
|
||
| <field name="barcode" position="attributes"> | ||
| <attribute name="invisible">True</attribute> | ||
| </field> | ||
| <field name="barcode" position="after"> | ||
| <label for="barcode" /> | ||
| <div name="div_barcode" class="o_row"> | ||
| <field | ||
| name="barcode" |
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.
With this new design, barcode fields is in the form two times. AFAIK, it can generate trouble. Don't you think ?
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.
Hello @legalsylvain, this behavior is expected since V16:
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-16.0
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 ! I didn't know !
legalsylvain
left a comment
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.
LGTM. Thanks !
luisg123v
left a comment
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.
|
/ocabot migration barcodes_generator_product |
|
Hi @rousseldenis @moylop260 @pedrobaeza this is ready :) could you review/merge, please? |
|
/ocabot merge nobump |
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at 68ee8c9. Thanks a lot for contributing to OCA. ❤️ |



Migrate the module barcodes_generator_product to V17.
This PR supersedes the PR#594