[FIX] purchase: purchase.order.form: load field used in domains

There was a traceback when opening the purchase.order model in form view as the
field 'invoiced' is used in domains, but has been removed from the template at
rev. eace69d07d.
This commit is contained in:
Aaron Bohy
2015-06-26 13:48:37 +02:00
parent 9d121cd9ec
commit f16e438b24
+1
View File
@@ -280,6 +280,7 @@
</group>
<group>
<field name="invoice_method"/>
<field name="invoiced" invisible="1"/>
<field name="payment_term_id" options="{'no_open': True, 'no_create': True}"/>
<field name="fiscal_position_id" attrs="{'readonly': [('invoiced','=', True)]}" />
<!-- We do not need these fields anymore, the information is in open chatter -->