[IMP] crm: Improve the wizard of phonecall2phonecall

bzr revid: sbh@tinyerp.com-20100308080248-egfr6wye9ey9b3ix
This commit is contained in:
sbh (Open ERP)
2010-03-08 13:32:48 +05:30
parent 08be69b349
commit 59e9730944
3 changed files with 9 additions and 7 deletions
+7 -3
View File
@@ -78,16 +78,20 @@
name="%(wizard_crm_phonecall_meeting_set)d"
icon="gtk-redo"
type="action" />
<newline/>
<field name="partner_phone"/>
<field name="duration"/>
<field name="section_id" colspan="1" widget="selection" />
<button string="Convert to Opportunity"
name="%(wizard_crm_phonecall_opportunity_set)d"
icon="gtk-index" type="action"
attrs="{'invisible':[('opportunity_id','!=',False)]}" />
<label colspan="6" string=""/>
<button string="Schedule Call Other"
icon="gtk-redo"
name="%(phonecall_to_phonecall_act)d"
type="action" />
</group>
<group col="3" colspan="2">
<separator colspan="3" string="Contacts" />
@@ -42,7 +42,6 @@ class crm_phonecall2phonecall(osv.osv_memory):
this = self.browse(cr, uid, ids)[0]
record_id = context and context.get('record_id', False) or False
print ">>>>>>>>>>",record_id
values={}
values['name']=this.name
values['user_id']=this.user_id and this.user_id.id
@@ -6,10 +6,10 @@
<field name="model">crm.phonecall2phonecall</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Schedule Other Cal" col="2">
<form string="Schedule Other Call " col="2">
<field name="name"/>
<field name="user_id" />
<field name="category_id" />
<field name="category_id" domain="[('object_id.model', '=', 'crm.phonecall')]" />
<field name="section_id"/>
<field name="notes"/>
<group colspan="2" col="2" >
@@ -19,7 +19,6 @@
</form>
</field>
</record>
<record model="ir.actions.act_window" id="phonecall_to_phonecall_act">
<field name="name">Schedule Other Call</field>
<field name="res_model">crm.phonecall2phonecall</field>