diff --git a/addons/purchase/models/purchase.py b/addons/purchase/models/purchase.py index 94b00480bf18db61c4e68433c214676caad83804..f068dbf9af13da3adb35c8aecc9afea8a306715f 100644 --- a/addons/purchase/models/purchase.py +++ b/addons/purchase/models/purchase.py @@ -647,7 +647,7 @@ class PurchaseOrderLine(models.Model): product_image = fields.Binary( 'Product Image', related="product_id.image", help="Non-stored related field to allow portal user to see the image of the product he has ordered") - product_type = fields.Selection(related='product_id.type') + product_type = fields.Selection(related='product_id.type', readonly=True) move_ids = fields.One2many('stock.move', 'purchase_line_id', string='Reservation', readonly=True, ondelete='set null', copy=False) price_unit = fields.Float(string='Unit Price', required=True, digits=dp.get_precision('Product Price'))