[FIX] account: the state field of res.partner.bank must be present in all form/tree views

This is the second part of the fix for bug
1068822.
res.partner.bank overrides fields_get() and sometimes adds
extra `states` attributes on the fields. This requires the
presence of the special `state` field in all views.

lp bug: https://launchpad.net/bugs/1068822 fixed

bzr revid: odo@openerp.com-20130225141014-zqbzbldqkl997lfu
This commit is contained in:
Olivier Dony
2013-02-25 15:10:14 +01:00
parent 2fac3759cd
commit 90baea35c5
+1
View File
@@ -95,6 +95,7 @@
</group>
<field name="bank_ids" context="{'default_partner_id': active_id, 'form_view_ref': 'base.view_partner_bank_form'}">
<tree string="Bank Details">
<field name="state" invisible="1"/>
<field name="sequence" invisible="1"/>
<field name="acc_number"/>
<field name="bank_name"/>