From 197bb9c3941990a0df597b1367222744a7a00a6a Mon Sep 17 00:00:00 2001 From: jbw-odoo Date: Mon, 22 Jan 2024 13:34:20 +0100 Subject: [PATCH] [FIX] purchase*: remove readonly param on account fields Product template "property_account_expense_id" and "property_account_creditor_price_difference" fields must stay editable in cases even if not "can be puchased". Since it being readonly is trivial, better leave it writeable instead of implementing cross module readonly logic. closes odoo/odoo#150601 Task: 3695677 Signed-off-by: Florian Gilbert (flg) --- addons/purchase/views/product_views.xml | 3 --- addons/purchase_stock/views/product_views.xml | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/purchase/views/product_views.xml b/addons/purchase/views/product_views.xml index 3f23a37f8fe..b383f9cb98d 100644 --- a/addons/purchase/views/product_views.xml +++ b/addons/purchase/views/product_views.xml @@ -88,9 +88,6 @@ product.template - - purchase_ok == 0 - diff --git a/addons/purchase_stock/views/product_views.xml b/addons/purchase_stock/views/product_views.xml index c5f84a09926..7c764f53e74 100644 --- a/addons/purchase_stock/views/product_views.xml +++ b/addons/purchase_stock/views/product_views.xml @@ -19,7 +19,7 @@ - +