[18.0][MIG] coop_inventory: Migration to 18.0#4
Merged
nguyenminhchien merged 21 commits into18.0_devfrom Mar 25, 2026
Merged
Conversation
nguyenminhchien
requested changes
Mar 23, 2026
| class StockQuant(models.Model): | ||
| _inherit = "stock.quant" | ||
|
|
||
| product_name = fields.Char(related="product_id.name", store=True) |
Collaborator
There was a problem hiding this comment.
2026-03-23 07:25:40,142 119493 WARNING v18c_coop_inventory odoo.fields: Translated stored related field (stock.quant.product_name) will not be computed correctly in all languages
Make sure the data is updated: for example
- v12:
Customizable Desk - v18: should be ` {"en_US": "Customizable Desk", "fr": "Bureau personnalisable"}
| Only storable products (is_storable=True) generate a picking. | ||
| Consumable products are intentionally excluded. | ||
|
|
||
| Note: super() is deliberately not called — this method fully replaces |
Collaborator
There was a problem hiding this comment.
It's a bad idea to not call the super().
Instead of overriding this method, override def _create_stock_moves(self, picking) of purchase.order.line
Currently translated at 92.9% (13 of 14 strings) Translation: foodcoops-12.0/foodcoops-12.0-coop_inventory Translate-URL: https://translate.druidoo.io/projects/foodcoops-12-0/foodcoops-12-0-coop_inventory/fr/
New Inventory Tools: Adjustments
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.
Depend on:
https://github.com/OCA/purchase-workflow/pull/2892Change: