From d7b9363361653bc60fd8cca366ec6a32f5eba52e Mon Sep 17 00:00:00 2001 From: Swapnesh Shah Date: Sat, 31 Jul 2021 12:54:20 +0000 Subject: [PATCH] [IMP] purchase: allow to change price if not invoiced Steps to reproduce: - Create Bill from Purchase order - Raise Refund for the Same Bill Current Behavior before commit: Field Unit Price is readonly in PO line as invoice is already created. Expected behavior: Price should be editable as Qty Invoiced is Zero after Refund. With this commit, Price unit will be readonly based on `qty_invoiced` closes odoo/odoo#74526 Signed-off-by: Arnold Moyaux --- addons/purchase/views/purchase_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml index a6449d0d863..3ef61a5121b 100644 --- a/addons/purchase/views/purchase_views.xml +++ b/addons/purchase/views/purchase_views.xml @@ -249,7 +249,7 @@ force_save="1" optional="show"/> - +