[7.0] partner_firstname - creating a new partner doesn't set the displayed name if account module is installed

Bug #1183319 reported by Yannick Vaucher @ Camptocamp
20
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Partner and Contact Management
Fix Released
Undecided
Yannick Vaucher @ Camptocamp

Bug Description

Creating a partner by setting a lastname will show a correct name in form but in kanban and list the name column will be empty

This occures when account_report_company is installed (auto installed with account)

The module account_report_company change the view and add a field "display_name" which is used in view instead of name.
This display_name is a function field which is triggered if name is change but not if firstname or lastname is change.

To fix this a link module between account_report_company and partner_firstname must be created.

Related branches

Changed in partner-contact-management:
status: New → Fix Committed
assignee: nobody → Yannick Vaucher @ Camptocamp (yvaucher-c2c)
Changed in partner-contact-management:
status: Fix Committed → Fix Released
Revision history for this message
martin (riess82) wrote :

I'm not 100% sure if I'm looking at the same bug.
I have res.partner kanban view displaying display_name which is stored in the database and is not updated when changing firstname or lastname.

my solution (added in partner_view.xml)
    <record id="res_partner_kanban_view" model="ir.ui.view">
      <field name="name">res.partner.kanban.firstname</field>
      <field name="model">res.partner</field>
      <field name="inherit_id" ref="base.res_partner_kanban_view"/>
      <field name="arch" type="xml">
                <xpath expr="//kanban/templates//div//div/h4" position="attributes">
                    <attribute name="invisible">1</attribute>
                </xpath>
                <xpath expr="//kanban/templates//div//div/h4" position="after">
                    <h4 class="oe_partner_heading"><a type="open"><field name="name"/></a></h4>
                </xpath>
      </field>
    </record>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.