Use Active Record syntax to store cost price
review840002
This commit is contained in:
1 parent
7092b91f10
commit
15b1645b40
1 file changed
+2
-4
+2
-4
@@ -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'
|
||||
Reference in new issue
Block a user