summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2013-04-22 16:15:18 +0200
committerOlivier Dony <odo@openerp.com>2013-04-22 16:15:18 +0200
commit4b85daf182beef4c7bba86e64dbb330497bc5650 (patch)
tree19e716cb674b79c0e834232eff622025068287ee
parent856083e2b4e07a98192bd1d31fe4d6cc2c141b27 (diff)
[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
-rw-r--r--addons/account_report_company/res_partner_view.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/account_report_company/res_partner_view.xml b/addons/account_report_company/res_partner_view.xml
index cae010f3066..ad31d01d515 100644
--- a/addons/account_report_company/res_partner_view.xml
+++ b/addons/account_report_company/res_partner_view.xml
@@ -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>