[10.0][FIX] purchase_packaging: related field product_tmpl_id on purchase order line must be readonly

This commit is contained in:
Cédric Pigeon
2018-09-25 06:39:45 +02:00
committed by Thomas Binsfeld
parent b797ade67b
commit 412ccd00d1
2 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Purchase Packaging",
"version": "10.0.1.0.4",
"version": "10.0.1.0.5",
"author": 'ACSONE SA/NV, '
'Odoo Community Association (OCA)',
"category": "Warehouse",

View File

@@ -14,7 +14,8 @@ class PurchaseOrderLine(models.Model):
product_tmpl_id = fields.Many2one(
related='product_id.product_tmpl_id',
comodel_name='product.template'
comodel_name='product.template',
readonly=True
)
packaging_id = fields.Many2one(
'product.packaging',