[FIX] product: lock uom in edition
On product packaging model, the uom is related to the product uom but but editable. This can lead to some error in the database. This commit set it as readonly to avoid any mistake. Co-authored-by: Denis Roussel <denis.roussel@acsone.eu>
This commit is contained in:
co-authored by
Denis Roussel
parent
e2c28ed3d6
commit
96143348ae
@@ -593,7 +593,7 @@ class ProductPackaging(models.Model):
|
||||
product_id = fields.Many2one('product.product', string='Product')
|
||||
qty = fields.Float('Contained Quantity', help="The total number of products you can have per pallet or box.")
|
||||
barcode = fields.Char('Barcode', copy=False, help="Barcode used for packaging identification.")
|
||||
product_uom_id = fields.Many2one('uom.uom', related='product_id.uom_id')
|
||||
product_uom_id = fields.Many2one('uom.uom', related='product_id.uom_id', readonly=True)
|
||||
|
||||
|
||||
class SupplierInfo(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user