[FIX] Event: Copy registration will not copy invoice_id
bzr revid: mra@mra-laptop-20101110124930-i3oq64k3gwyt0066
This commit is contained in:
parent
466c65ec74
commit
b44bcdba39
|
@ -370,6 +370,18 @@ class event_registration(osv.osv):
|
|||
self.history(cr, uid, [reg], _('Invoiced'))
|
||||
return inv_id
|
||||
|
||||
def copy(self, cr, uid, id, default=None, context=None):
|
||||
""" Copy record of Given id
|
||||
@param id: Id of Registration record.
|
||||
@param context: A standard dictionary for contextual values
|
||||
"""
|
||||
if not default:
|
||||
default = {}
|
||||
default.update({
|
||||
'invoice_id': False,
|
||||
})
|
||||
return super(event_registration, self).copy(cr, uid, id, default=default, context=context)
|
||||
|
||||
def action_invoice_create(self, cr, uid, ids, grouped=False, date_inv = False, context=None):
|
||||
""" Action of Create Invoice """
|
||||
res = False
|
||||
|
|
Loading…
Reference in New Issue