[IMP]: crm: Put proper context for default value in history tab of partner
authorrpa (Open ERP) <rpa@tinyerp.com>
Fri, 1 Oct 2010 13:45:38 +0000 (19:15 +0530)
committerrpa (Open ERP) <rpa@tinyerp.com>
Fri, 1 Oct 2010 13:45:38 +0000 (19:15 +0530)
bzr revid: rpa@tinyerp.com-20101001134538-y56zlbh0mybptw30

addons/crm/res_partner_view.xml

index 6ca978e..d812285 100644 (file)
@@ -11,7 +11,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">
+                    <field name="opportunity_ids" colspan="4" nolabel="1" context="{'default_partner_id': active_id}">
                          <tree string="Leads and Opportunities"  colors="blue:state=='pending';gray:state=='cancel'">
                              <field name="create_date"/>
                              <field name="name"/>
@@ -44,7 +44,7 @@
                                  icon="gtk-cancel" />
                          </tree>
                     </field>
-                    <field name="meeting_ids" colspan="4" nolabel="1" >
+                    <field name="meeting_ids" colspan="4" nolabel="1"  context="{'default_partner_id': active_id}">
                         <tree string="Meetings" colors="gray:state in ('draft', 'cancel','done','pending')">
                             <field name="user_id" string="Responsible"/>
                             <field name="name" string="Subject" />
@@ -52,7 +52,7 @@
                             <field name="date_deadline" string="End Date"/>
                         </tree>
                     </field>
-                    <field name="phonecall_ids" colspan="4" nolabel="1">
+                    <field name="phonecall_ids" colspan="4" nolabel="1" context="{'default_partner_id': active_id}">
                         <tree string="Phone Calls" colors="gray:state in ('draft', 'cancel','done','pending')">
                             <field name="date" string="Date"/>
                             <field name="name" string="Call Summary"/>