[19.0][MIG] purchase_lot: Migration to 19.0#3071
Open
apami0111 wants to merge 36 commits into
Open
Conversation
902ac77 to
94bc6b5
Compare
Translated using Weblate (Spanish) Currently translated at 100.0% (3 of 3 strings) Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_lot Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_lot/es/
Translated using Weblate (Italian) Currently translated at 100.0% (3 of 3 strings) Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_lot Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_lot/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: purchase-workflow-17.0/purchase-workflow-17.0-purchase_lot Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_lot/
Currently translated at 100.0% (5 of 5 strings) Translation: purchase-workflow-17.0/purchase-workflow-17.0-purchase_lot Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-17-0/purchase-workflow-17-0-purchase_lot/it/
Currently translated at 80.0% (4 of 5 strings) Translation: purchase-workflow-18.0/purchase-workflow-18.0-purchase_lot Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_lot/hr/
Currently translated at 100.0% (5 of 5 strings) Translation: purchase-workflow-18.0/purchase-workflow-18.0-purchase_lot Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-18-0/purchase-workflow-18-0-purchase_lot/hr/
Fix end of file in test-requirements.txt Fix test-requirements.txt to use 19.0 branch for stock_restrict_lot
celm1990
suggested changes
May 25, 2026
Contributor
celm1990
left a comment
There was a problem hiding this comment.
Please squash the administrative commits
Comment on lines
+103
to
+111
| ( | ||
| 0, | ||
| 0, | ||
| { | ||
| "product_id": self.large_cabinet.id, | ||
| "product_qty": 1.0, | ||
| "lot_id": self.lot1.id, | ||
| }, | ||
| ) |
Contributor
There was a problem hiding this comment.
Suggested change
| ( | |
| 0, | |
| 0, | |
| { | |
| "product_id": self.large_cabinet.id, | |
| "product_qty": 1.0, | |
| "lot_id": self.lot1.id, | |
| }, | |
| ) | |
| Command.create( | |
| { | |
| "product_id": self.large_cabinet.id, | |
| "product_qty": 1.0, | |
| "lot_id": self.lot1.id, | |
| }, | |
| ) |
Contributor
BhaveshHeliconia
left a comment
There was a problem hiding this comment.
when using BaseCommon, there’s no need to create a res.partner record manually.
| @classmethod | ||
| def setUpClass(cls): | ||
| super().setUpClass() | ||
| cls.partner_id = cls.env["res.partner"].create({"name": "Test Supplier"}) |
Contributor
There was a problem hiding this comment.
Suggested change
| cls.partner_id = cls.env["res.partner"].create({"name": "Test Supplier"}) |
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.
Migrates purchase_lot from 18.0 to 19.0.
The models and views required no changes.
Tests were updated to reflect Odoo 19.0 API changes in stock models
and to remove dependencies on demo data.