[fix] problem in crm module extension to res.partner view, trying to set the value of a many2one from a corresponding o2m, which is useless and makes the web client crash

bzr revid: nicolas.vanhoren@openerp.com-20111011135253-vne15mxazqbl02jc
This commit is contained in:
niv-openerp 2011-10-11 15:52:53 +02:00
parent ce1f472d57
commit c428a80570
1 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<page string="History" position="inside">
<field name="opportunity_ids" colspan="4" nolabel="1" context="{'default_partner_id': active_id}">
<field name="opportunity_ids" colspan="4" nolabel="1">
<tree string="Leads and Opportunities" colors="blue:state=='pending';gray:state=='cancel'">
<field name="create_date"/>
<field name="name"/>
@ -84,7 +84,7 @@
icon="gtk-go-up" />
</tree>
</field>
<field name="meeting_ids" colspan="4" nolabel="1" context="{'default_partner_id': active_id}">
<field name="meeting_ids" colspan="4" nolabel="1">
<tree string="Meetings" colors="gray:state in ('draft', 'cancel','done','pending')">
<field name="user_id" string="Responsible"/>
<field name="name" string="Subject" />
@ -92,7 +92,7 @@
<field name="date_deadline" string="End Date"/>
</tree>
</field>
<field name="phonecall_ids" colspan="4" nolabel="1" context="{'default_partner_id': active_id}">
<field name="phonecall_ids" colspan="4" nolabel="1">
<tree string="Phone Calls" colors="gray:state in ('draft', 'cancel','done','pending')">
<field name="date" string="Date"/>
<field name="name" string="Call Summary"/>