Skip to content

[20.0][MIG] barcodes_generator_product: Migration to 20.0 - #779

Open
dcatarino wants to merge 125 commits into
OCA:20.0from
dcatarino:20.0-mig-barcodes_generator_product
Open

dcatarino wants to merge 125 commits into
OCA:20.0from
dcatarino:20.0-mig-barcodes_generator_product

Conversation

@dcatarino

Copy link
Copy Markdown

Depends on #778 (barcodes_generator_abstract). Its commits are included here, only the last 40 commits belong to this PR.

legalsylvain and others added 30 commits October 26, 2026 11:00
* Rename manifest
* Change openerp references to odoo
* Bump version
* Alphabetize imports
* pyBarcode is no longer maintained, switch to viivakoodi fork (https://bitbucket.org/whitie/python-barcode/issues/16/pypi-08-release-request#comment-33978213)
)

Add an option to allow for automatic generation of barcode when a record of mixin model is created
* [FIX] barcodes_generator_abstract: Caching issue
* Make cache method return ids & move the recordset method out of cache to fix OCA#93
Currently translated at 29.6% (8 of 27 strings)

Translation: stock-logistics-barcode-12.0/stock-logistics-barcode-12.0-barcodes_generator_abstract
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-12-0/stock-logistics-barcode-12-0-barcodes_generator_abstract/de/
Currently translated at 14.8% (4 of 27 strings)

Translation: stock-logistics-barcode-12.0/stock-logistics-barcode-12.0-barcodes_generator_abstract
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-12-0/stock-logistics-barcode-12-0-barcodes_generator_abstract/sl/
Currently translated at 46.4% (13 of 28 strings)

Translation: stock-logistics-barcode-12.0/stock-logistics-barcode-12.0-barcodes_generator_abstract
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-12-0/stock-logistics-barcode-12-0-barcodes_generator_abstract/it/
Improve form view of barcode rules
Improve README
Auto-add admin to the group
Currently translated at 100.0% (28 of 28 strings)

Translation: stock-logistics-barcode-14.0/stock-logistics-barcode-14.0-barcodes_generator_abstract
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-14-0/stock-logistics-barcode-14-0-barcodes_generator_abstract/it/
updated images path on configuration readme file
SicurSam and others added 27 commits October 26, 2026 11:35
Currently translated at 100.0% (19 of 19 strings)

Translation: stock-logistics-barcode-14.0/stock-logistics-barcode-14.0-barcodes_generator_product
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-14-0/stock-logistics-barcode-14-0-barcodes_generator_product/it/
…e via product forms, to avoid to have barcode.rule not related to barcode.nomenclature. (Such rule will not be accessible after, because there is no menu entry to access to barcode.rule
…ds between product.product and product.template. (using _get_related_fields_variant_template, set compute / inverse function on fields, etc...)
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/es/
Currently translated at 70.5% (12 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/
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
- 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.
- `product.product_variant_easy_edit_view` was removed in 20.0
  (odoo/odoo#244185), variants are edited with the product form.
- Templates with variants now show their own barcode (odoo/odoo#265128),
  so the template form no longer hides it. It is read-only only when the
  template's own rule generates it by sequence.
- test_02 created a second variant with the same combination as the
  template's variant, which is now rejected: the variant is created with
  its own template.
- Tests run as superuser (`_test_user_groups = None`), as before.
@OCA-git-bot OCA-git-bot added mod:barcodes_generator_abstract Module barcodes_generator_abstract series:20.0 mod:barcodes_generator_product Module barcodes_generator_product labels Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:barcodes_generator_abstract Module barcodes_generator_abstract mod:barcodes_generator_product Module barcodes_generator_product series:20.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.