[MRG] merge lp:~openerp-dev/openobject-addons/trunk-OLT-ISSUE-07-fka

bzr revid: tpa@tinyerp.com-20121112094812-m83eez9fwa5wp8ti
This commit is contained in:
Turkesh Patel (Open ERP) 2012-11-12 15:18:12 +05:30
commit 32fe6980eb
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,