From 0a5b1cef36db5865dbdfb36e62203f14d5c00b2c Mon Sep 17 00:00:00 2001 From: jem-odoo Date: Fri, 4 May 2018 15:38:17 +0200 Subject: [PATCH] [IMP] purchase,purchase_stock: received qty edition When stock is not install and using purchase alone, user should be able to edit received quantity manually for consummable (and services) products. This is a direct consequence to the split of purchase and stock module. --- addons/purchase/views/purchase_views.xml | 2 +- addons/purchase_stock/views/purchase_views.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml index 2ce4d2a19a7..d93c686cd81 100644 --- a/addons/purchase/views/purchase_views.xml +++ b/addons/purchase/views/purchase_views.xml @@ -187,7 +187,7 @@ - + diff --git a/addons/purchase_stock/views/purchase_views.xml b/addons/purchase_stock/views/purchase_views.xml index 5cbba657c3a..f7d9848f294 100644 --- a/addons/purchase_stock/views/purchase_views.xml +++ b/addons/purchase_stock/views/purchase_views.xml @@ -27,6 +27,9 @@ + + {'column_invisible': [('parent.state', 'not in', ('purchase', 'done'))], 'readonly': [('product_type', 'in', ('consu', 'product'))]} +