[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
This commit is contained in:
Graeme Gellatly
2018-09-25 14:52:20 +00:00
committed by Martin Trigaux
parent 31d2b49a78
commit 9e9d8e3632
+1
View File
@@ -227,6 +227,7 @@
</tree>
<form string="Purchase Order Line">
<sheet>
<field name="state" invisible="1"/>
<group>
<group>
<field name="product_id"