Commits

Raimon Esteve (Zikzakmedia) committed 3beb1ba

Remove product_obj in on_change_product

Comments (0)

Files changed (3)

 
     def on_change_product(self):
         """When change product, get manufacturer value"""
-        product_obj = Pool().get('product.product')
         res = super(Move, self).on_change_product()
         product = self.product or  False
         res['manufacturer'] = None
 
     def on_change_product(self):
         """When change product, get manufacturer value"""
-        product_obj = Pool().get('product.product')
         res = super(PurchaseLine, self).on_change_product()
         product = self.product or  False
         res['manufacturer'] = None
             res['manufacturer'] = product.manufacturer and \
                     product.manufacturer.id or None
         return res
-
 
     def on_change_product(self):
         """When change product, get manufacturer value"""
-        product_obj = Pool().get('product.product')
         res = super(SaleLine, self).on_change_product()
         product = self.product or  False
         res['manufacturer'] = None
             res['manufacturer'] = product.manufacturer and \
                     product.manufacturer.id or None
         return res
-