[18.0][MIG] product_lot_sequence: Migration to 18.0#2004
Merged
OCA-git-bot merged 53 commits intoOCA:18.0from Jul 1, 2025
Merged
[18.0][MIG] product_lot_sequence: Migration to 18.0#2004OCA-git-bot merged 53 commits intoOCA:18.0from
OCA-git-bot merged 53 commits intoOCA:18.0from
Conversation
[ADD] sequence for serials
Provide multiple configuration options with this module installed: - "product": This is the default behaviour once you install this module. It's the same than in previous Odoo versions with this module installed, i.e. it allows to define a dedicated sequence on each product. - "global": This was the default behaviour from previous Odoo versions when this module was not installed, i.e it will always use the same global sequence for every product.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-15.0/product-attribute-15.0-product_lot_sequence Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_lot_sequence/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-15.0/product-attribute-15.0-product_lot_sequence Translate-URL: https://translation.odoo-community.org/projects/product-attribute-15-0/product-attribute-15-0-product_lot_sequence/
…ews adjustment - Make number of digits to be set on products for sequence generation configurable. - Fix a minor issue of _compute_display_lot_sequence_fields() not running before product is created. - Make lot_sequence_prefix and lot_sequence_padding invisible when lot_sequence_id is assigned to the product (since these values are no longer relevant once the sequence is generated.
…ate method in batch
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-attribute-17.0/product-attribute-17.0-product_lot_sequence Translate-URL: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_lot_sequence/
Currently translated at 100.0% (19 of 19 strings) Translation: product-attribute-17.0/product-attribute-17.0-product_lot_sequence Translate-URL: https://translation.odoo-community.org/projects/product-attribute-17-0/product-attribute-17-0-product_lot_sequence/nl_NL/
sebalix
reviewed
Jul 1, 2025
| <field name="inherit_id" ref="stock.view_template_property_form" /> | ||
| <field name="arch" type="xml"> | ||
| <field name="tracking" position="after"> | ||
| <xpath expr="//field[@name='tracking']/.." position="after"> |
Contributor
There was a problem hiding this comment.
Maybe ensure we target the parent div element:
<xpath expr="//field[@name='tracking']/ancestor::div[1]" position="after">
Contributor
|
/ocabot migration product_lot_sequence |
e9dfba4 to
4a975ce
Compare
sebalix
approved these changes
Jul 1, 2025
Contributor
|
/ocabot merge nobump |
Contributor
|
This PR looks fantastic, let's merge it! |
Contributor
|
Congratulations, your PR was merged at 534c93c. Thanks a lot for contributing to OCA. ❤️ |
victoralmau
pushed a commit
to Tecnativa/product-attribute
that referenced
this pull request
Jul 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change:
company_idwas computed since this commit, so i remove this check of the testtest_lot_onchange_product_id_global:self.assertEqual(lot_form.company_id, self.env.company)In v16:


In v18: