From b610e2a8123cfbfbfa57e67a5186cf9a250becb8 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Mon, 11 Dec 2017 18:55:16 +0100 Subject: [PATCH] [FIX] purchase: po line and force_save Two fiels are set readonly according to the status of the purchase order: product_id and product_uom_id. They become readonly once the purchase order is confirmed, but according to the options a user is still able to add purchase order line. Make sure to always send the required fields to the server. Fixes #21519 --- addons/purchase/views/purchase_views.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml index eaaec54f341..ac69a1054fb 100644 --- a/addons/purchase/views/purchase_views.xml +++ b/addons/purchase/views/purchase_views.xml @@ -210,7 +210,7 @@ - + @@ -219,7 +219,7 @@ - +