[FIX] traceback: maximum recursion depth exceeded

bzr revid: fka@tinyerp.com-20121112092125-g6phkn7ynjhapv9k
This commit is contained in:
Foram Katharotiya (OpenERP) 2012-11-12 14:51:25 +05:30
parent f605e15039
commit f6034c32d9
1 changed files with 2 additions and 1 deletions

View File

@ -39,9 +39,10 @@ class sale_order_line(osv.osv):
_columns = {
'event_id': fields.many2one('event.event', 'Event', help="Choose an event and it will automatically create a registration for this event."),
#those 2 fields are used for dynamic domains and filled by onchange
'event_type_id': fields.related('event_type_id', type='many2one', relation="event.type", string="Event Type"),
'event_type_id': fields.related('product_id','event_type_id', type='many2one', relation="event.type", string="Event Type"),
'event_ok': fields.related('product_id', 'event_ok', string='event_ok', type='boolean'),
}
def product_id_change(self, cr, uid, ids,
pricelist,