78
78
%('", "'.join([categ.name for categ in shop.exportable_root_category_ids]), shop.name))
80
80
def create(self, cr, uid, vals, context=None):
82
82
if not context.get('do_not_check_active_field_on_shop'):
83
83
vals['categ_ids'] = vals.get('categ_ids', [(6,0,[])])[0][2]
84
84
self.check_if_activable(cr, uid, vals, context=context)
85
85
return super(product_product, self).create(cr, uid, vals, context=context)
87
87
def write(self, cr, uid, ids, vals, context=None):
90
90
if not context.get('do_not_check_active_field_on_shop'):