summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Gellatly <gdgellatly@gmail.com>2018-09-25 07:22:44 +0000
committerMartin Trigaux <mat@odoo.com>2018-09-25 14:52:20 +0000
commit9e9d8e3632e566de22e4971aea5c7f2ad74aa043 (patch)
tree33eaa3e687b3a8a10c924bdf0446a752a198d968
parent31d2b49a78966d0025594d488d995be91d912797 (diff)
[FIX] purchase: add state field in form view
The inline tree view of the purchase order lines has a state field that is used in attrs. The popup form does not have the state view. Even if the state field is not used in the form view, closing the form view produces an error as the field state is not found. This patch is a workaround to avoid the error. The real issue should be fixed in the future but is more complex. closes odoo/odoo#27208
-rw-r--r--addons/purchase/views/purchase_views.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml
index d8982aed353..f215b2852ca 100644
--- a/addons/purchase/views/purchase_views.xml
+++ b/addons/purchase/views/purchase_views.xml
@@ -227,6 +227,7 @@
</tree>
<form string="Purchase Order Line">
<sheet>
+ <field name="state" invisible="1"/>
<group>
<group>
<field name="product_id"