[REVIEW]: code review
bzr revid: mga@mga-20100322141400-2er9nd4q5bg7izwx
This commit is contained in:
parent
7fabf72b8b
commit
a5aaf0cc04
|
@ -128,13 +128,13 @@ class crm_opportunity2meeting(osv.osv_memory):
|
|||
|
||||
opp = opp_obj.browse(cr, uid, record_id, context=context)
|
||||
context = {
|
||||
'default_opportunity_id': opp.id,
|
||||
'default_partner_id': opp.partner_id and opp.partner_id.id or False,
|
||||
'default_section_id': opp.section_id and opp.section_id.id or False,
|
||||
'default_email_from': opp.email_from,
|
||||
'default_state': 'open',
|
||||
'default_name': opp.name
|
||||
}
|
||||
'default_opportunity_id': opp.id,
|
||||
'default_partner_id': opp.partner_id and opp.partner_id.id or False,
|
||||
'default_section_id': opp.section_id and opp.section_id.id or False,
|
||||
'default_email_from': opp.email_from,
|
||||
'default_state': 'open',
|
||||
'default_name': opp.name
|
||||
}
|
||||
|
||||
value = {
|
||||
'name': _('Meetings'),
|
||||
|
@ -147,7 +147,7 @@ class crm_opportunity2meeting(osv.osv_memory):
|
|||
'views': [(id1, 'calendar'), (id2, 'form'), (id3, 'tree')],
|
||||
'type': 'ir.actions.act_window',
|
||||
'search_view_id': res['res_id']
|
||||
}
|
||||
}
|
||||
|
||||
return value
|
||||
|
||||
|
|
|
@ -19,18 +19,17 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
from crm import crm
|
||||
from datetime import datetime, timedelta
|
||||
from osv import fields,osv,orm
|
||||
from osv.orm import except_orm
|
||||
from tools.translate import _
|
||||
import base64
|
||||
import os
|
||||
import re
|
||||
import time
|
||||
import time
|
||||
import tools
|
||||
|
||||
from crm import crm
|
||||
from datetime import datetime, timedelta
|
||||
from osv import fields,osv,orm
|
||||
from osv.orm import except_orm
|
||||
from tools.translate import _
|
||||
|
||||
class project_issue(osv.osv):
|
||||
_name = "project.issue"
|
||||
|
|
Loading…
Reference in New Issue