488
488
domain = {'product_uom':[], 'supplier': [('partner_type','in', ['internal', 'section', 'intermission'])]}
490
490
product = product_obj.browse(cr, uid, product_id)
492
res, test = product_obj._on_change_restriction_error(cr, uid, product_id, field_name='product_id', values={'value': value}, vals={'constraints': 'consumption'}, context=context)
491
495
value = {'product_uom': product.uom_id.id, 'name': '[%s] %s'%(product.default_code, product.name),
492
496
'type': product.procure_method, 'comment_ok': True, 'cost_price': product.standard_price}
493
497
if value['type'] != 'make_to_stock':