From 2e2e877ae53015e57a734ad3a14d46e83ad3c5c6 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Tue, 14 Jan 2020 17:16:20 +0000 Subject: [PATCH] [IMP] product: product_variant_count shouldn't be editable. closes odoo/odoo#43305 Related: odoo/enterprise#7718 Signed-off-by: Victor Feyens (vfe) --- addons/product/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product/models/product.py b/addons/product/models/product.py index f73f73be392..610c10dd364 100644 --- a/addons/product/models/product.py +++ b/addons/product/models/product.py @@ -739,7 +739,7 @@ class SupplierInfo(models.Model): product_tmpl_id = fields.Many2one( 'product.template', 'Product Template', check_company=True, index=True, ondelete='cascade') - product_variant_count = fields.Integer('Variant Count', related='product_tmpl_id.product_variant_count', readonly=False) + product_variant_count = fields.Integer('Variant Count', related='product_tmpl_id.product_variant_count') delay = fields.Integer( 'Delivery Lead Time', default=1, required=True, help="Lead time in days between the confirmation of the purchase order and the receipt of the products in your warehouse. Used by the scheduler for automatic computation of the purchase order planning.")