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
Rocío Vega
parent
dcd53cf116
commit
61c0303d7b
@@ -3,7 +3,7 @@
|
||||
{
|
||||
"name": "Stock Secondary Unit",
|
||||
"summary": "Get product quantities in a secondary unit",
|
||||
"version": "13.0.1.1.0",
|
||||
"version": "13.0.1.1.1",
|
||||
"development_status": "Production/Stable",
|
||||
"category": "stock",
|
||||
"website": "https://github.com/OCA/stock-logistics-warehouse",
|
||||
|
||||
@@ -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