Source

trytond-product_manufacturer / sale.py

Diff from to

File sale.py

 
     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
-