Use Active Record syntax to store cost price

review840002
This commit is contained in:
Albert Cervera i Areny committed 2013-04-30 08:37:33 +02:00
1 parent 7092b91f10
commit 15b1645b40
1 file changed
+2 -4
+2 -4
View File
@@ -334,8 +334,6 @@ class UpdateCostPrice(Wizard):
return 'update_price'
def transition_update_price(self):
Product = Pool().get('product.product')
Product.write([self.ask_price.product], {
'cost_price': self.ask_price.cost_price,
})
self.ask_price.product.cost_price = self.ask_price.cost_price
self.ask_price.product.save()
return 'end'