[REF] event
bzr revid: mra@mra-laptop-20101027130524-20vvcbyyisql8n55
This commit is contained in:
parent
a00dcb29ef
commit
b2d68ddd42
|
@ -281,8 +281,8 @@ class event_event(osv.osv):
|
|||
if context is None:
|
||||
context = {}
|
||||
team_pool = self.pool.get('crm.case.section')
|
||||
team = team_pool.browse(cr, uid, team_id, context=context)
|
||||
res = {}
|
||||
team = team_pool.browse(cr, uid, team_id, context=context)
|
||||
if team.reply_to:
|
||||
res = {'value': {'reply_to': team.reply_to}}
|
||||
return res
|
||||
|
@ -424,7 +424,6 @@ class event_registration(osv.osv):
|
|||
res = self._make_invoice(cr, uid, k, [v], context=context)
|
||||
self.do_close(cr, uid, [k.id], context={'invoice_id': res})
|
||||
if res: new_invoice_ids.append(res)
|
||||
|
||||
return new_invoice_ids
|
||||
|
||||
def do_open(self, cr, uid, ids, context=None):
|
||||
|
|
|
@ -19,18 +19,17 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
from osv import fields,osv
|
||||
from osv import fields, osv
|
||||
|
||||
class res_partner(osv.osv):
|
||||
_inherit = 'res.partner'
|
||||
|
||||
_columns = {
|
||||
'speaker': fields.boolean('Speaker'),
|
||||
'event_ids': fields.one2many('event.event','main_speaker_id',readonly=True),
|
||||
'event_registration_ids': fields.one2many('event.registration','partner_id',readonly=True),
|
||||
'event_ids': fields.one2many('event.event','main_speaker_id', readonly=True),
|
||||
'event_registration_ids': fields.one2many('event.registration','partner_id', readonly=True),
|
||||
}
|
||||
|
||||
res_partner()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -47,5 +47,4 @@
|
|||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
||||
</openerp>
|
Loading…
Reference in New Issue