Commits

Raimon Esteve (Zikzakmedia) committed 28375af

Create sale. Add shop if not available in dict

Comments (0)

Files changed (1)

                 cls.raise_user_error('not_sale_shop')
 
             vals = vals.copy()
-            vals['shop'] = user.shop.id
+            if not 'shop' in vals:
+                vals['shop'] = user.shop.id
         return super(Sale, cls).create(vlist)
 
     @classmethod