[IMP] res_company: make report flag on bank accounts visible only from the company form

bzr revid: rco@openerp.com-20120907101707-f2jiszy90yojbihf
This commit is contained in:
Raphael Collet 2012-09-07 12:17:07 +02:00
parent 2716c0e063
commit 1a6aaed52a
2 changed files with 5 additions and 3 deletions

View File

@ -91,8 +91,9 @@
<group col="4">
<field name="state"/>
<field name="acc_number"/>
<field name="company_id" on_change="onchange_company_id(company_id)" invisible="context.get('company_hide', True)" widget="selection"/>
<field name="footer" attrs="{'invisible': [('company_id','=',False)]}"/>
<field name="company_id" on_change="onchange_company_id(company_id)"
invisible="context.get('company_hide', True)" widget="selection"/>
<field name="footer" invisible="context.get('footer_hide', True)"/>
</group>
<group>
<group name="owner" string="Bank Account Owner">

View File

@ -66,7 +66,8 @@
</group>
</group>
<group string="Bank Accounts">
<field name="bank_ids" nolabel="1" context="{'default_company_id': active_id}"
<field name="bank_ids" nolabel="1"
context="{'default_company_id': active_id, 'footer_hide': False}"
on_change="on_change_footer(custom_footer, phone, email, fax, website, vat, company_registry, bank_ids)"/>
</group>
<group string="Report Footer Configuration">