[REM] stock_account: unused onchanges

This commit is contained in:
Simon Lejeune
2017-08-25 16:10:19 +02:00
parent 91d6957849
commit 57e85e88b9
-10
View File
@@ -73,11 +73,6 @@ class ProductTemplate(models.Model):
def _set_cost_method(self):
return self.write({'property_cost_method': self.cost_method})
@api.onchange('type')
def onchange_type_valuation(self):
# TO REMOVE IN MASTER
pass
@api.multi
def _get_product_accounts(self):
""" Add the stock accounts related to product to the result of super()
@@ -114,11 +109,6 @@ class ProductProduct(models.Model):
stock_value = fields.Float(
'Value', compute='_compute_stock_value')
@api.onchange('type')
def onchange_type_valuation(self):
# TO REMOVE IN MASTER
pass
@api.multi
def do_change_standard_price(self, new_price, account_id):
""" Changes the Standard Price of Product and creates an account move accordingly."""