Browse Source

[FIX] Singleton Error Fixed

pull/104/head
Sreejith P 7 years ago
parent
commit
be7245fb99
  1. 6
      product_price_update_advanced/models/product_price.py

6
product_price_update_advanced/models/product_price.py

@ -26,9 +26,7 @@ class ProductPrice(models.TransientModel):
@api.onchange('name')
def get_price(self):
prod_obj = self.env['product.template'].search([('name', '=', self.name.name)])
self.sale_price = prod_obj.list_price
self.cost_price = prod_obj.standard_price
self.sale_price = self.name.list_price
self.cost_price = self.name.standard_price

Loading…
Cancel
Save