[FIX] account_report_company: be more conservative and hide the `name` field instead of removing it from list view

This makes the inherited view still compatible with
modules that depend on the presence of the `name`
field in the list view (otherwise it would depend on the
module loading order and would sometimes work and
sometimes not).

bzr revid: odo@openerp.com-20130422141518-imyiuu59uxnzq5eh
This commit is contained in:
Olivier Dony 2013-04-22 16:15:18 +02:00
parent 856083e2b4
commit 4b85daf182
1 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,10 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_tree"/>
<field name="arch" type="xml">
<field name="name" position="replace">
<field name="name" position="attributes">
<attribute name="invisible">True</attribute>
</field>
<field name="name" position="before">
<field name="display_name"/>
</field>
</field>