[Add] crm: Add the osv_memory wizard of lead_opportunity and change the name of function

bzr revid: sbh@tinyerp.com-20100310110044-79cyfknveptf6so4
This commit is contained in:
sbh (Open ERP)
2010-03-10 16:30:44 +05:30
parent 65ae507923
commit a80894f402
6 changed files with 5 additions and 8 deletions
+1
View File
@@ -69,6 +69,7 @@ between mails and Open ERP.""",
'wizard/opportunity2partner_view.xml',
'wizard/opportunity2meeting.xml',
'wizard/opportunity2phonecall.xml',
'wizard/lead2opportunity.xml',
'crm_wizard.xml',
'crm_view.xml',
+1 -1
View File
@@ -46,7 +46,7 @@
<field name="priority"/>
<field name="date_deadline"/>
<button
name="%(wizard_crm_lead_opportunity_set)d"
name="%(action_crm_lead2opportunity)d"
string="Convert"
help="Convert into Opportunity"
icon="gtk-index"
+1
View File
@@ -29,6 +29,7 @@ import wizard_history_event
import lead_to_partner
import lead2opportunity
import crm_phonecall2phonecall
import phonecall2partner
import phonecall2meeting
-5
View File
@@ -19,12 +19,7 @@
#
##############################################################################
from mx.DateTime import now
from osv import osv, fields
import netsvc
import ir
import pooler
from tools.translate import _
class crm_lead2partner(osv.osv_memory):
+1 -1
View File
@@ -38,7 +38,7 @@ class crm_phonecall2meeting(osv.osv_memory):
def action_cancel(self, cr, uid, ids, context=None):
return {'type':'ir.actions.act_window_close'}
def _makeMeeting(self, cr, uid, ids, context=None):
def action_makeMeeting(self, cr, uid, ids, context=None):
this = self.browse(cr, uid, ids[0], context=context)
record_id = context and context.get('record_id', False) or False
if record_id:
+1 -1
View File
@@ -8,7 +8,7 @@
<field name="arch" type="xml">
<form string="Convert To Meeting ">
<button name="action_cancel" string="_Cancel" icon="gtk-cancel" special="cancel" />
<button name="_makeMeeting" type="object" string="_Apply" icon="gtk-apply" />
<button name="action_makeMeeting" type="object" string="_Apply" icon="gtk-apply" />
</form>
</field>
</record>