[FIX] crm : When planifying a meeting from phone call, it does not open the

bzr revid: hmo@tinyerp.com-20091207083346-asw4vjq84zdv9qmt
This commit is contained in:
Harry (Open ERP)
2009-12-07 14:03:46 +05:30
parent 50def9597f
commit b1eb90aa06
2 changed files with 12 additions and 6 deletions
+3 -2
View File
@@ -9,12 +9,13 @@
src_model="res.partner"
view_mode="calendar,tree,form,gantt"
context="{'default_partner_id': active_id, 'default_duration': 4.0}"
domain="[('section_id','=','Meetings')]"/>
domain="[('section_id','=',ref('section_support1'))]"/>
<record model="ir.actions.act_window" id="crm_case_categ_meet_create_partner">
<field name="domain" eval="'[(\'section_id\',\'=\','+str(ref('section_support1'))+')]'"/>
<field name="context" eval="{'default_state':'open'}"/>
</record>
</record>
<record model="ir.actions.act_window.view" id="action_crm_tag_calendar_meet_partner">
<field name="sequence" eval="1"/>
+9 -4
View File
@@ -6,14 +6,19 @@
# Opportunities
# ------------------------------------------------------
<act_window
id="crm_case_categ_meet_opportunity"
<act_window
id="crm_case_categ_meet_case"
name="Schedule a Meeting"
res_model="crm.case"
src_model="crm.case"
view_mode="calendar,tree,form,gantt"
context="{'default_case_id': active_id, 'default_duration': 4.0}"
domain="[('section_id','=','Meetings')]"/>
domain="[('section_id','=',ref('section_support1'))]"/>
<record model="ir.actions.act_window" id="crm_case_categ_meet_case">
<field name="domain" eval="'[(\'section_id\',\'=\','+str(ref('section_support1'))+')]'"/>
<field name="context" eval="{'default_state':'open'}"/>
</record>
<record model="ir.ui.view" id="crm_case_form_view_oppor">
<field name="name">CRM - Opportunities Form</field>
@@ -38,7 +43,7 @@
<field name="case_id" select="1"/>
<button string="Assign" name="%(crm_generic_wizard_act)d" type="action" />
</group>
<button string="Schedule Meeting" icon="terp-crm" name="%(crm_case_categ_meet_opportunity)d" type="action"/>
<button string="Schedule Meeting" icon="terp-crm" name="%(crm_case_categ_meet_case)d" type="action"/>
</group>
<notebook colspan="4">
<page string="Description">