mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_secondary_unit: Incorrect secondary unit link in product variants view on common form. Create related template secondary unit field.
TT27057
This commit is contained in:
committed by
Jesús Alan Ramos Rodríguez
parent
b54d3ea3b8
commit
9df3bcdbd9
@@ -40,3 +40,9 @@ class ProductTemplate(models.Model):
|
||||
class ProductProduct(models.Model):
|
||||
_inherit = ["product.product", "stock.product.secondary.unit"]
|
||||
_name = "product.product"
|
||||
|
||||
stock_secondary_uom_id = fields.Many2one(
|
||||
comodel_name="product.secondary.unit",
|
||||
string="Second unit for inventory",
|
||||
related="product_tmpl_id.stock_secondary_uom_id",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user