From 57e85e88b985a39ce5fde3fec9bea4842d54891e Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Thu, 10 Aug 2017 18:24:21 +0200 Subject: [PATCH] [REM] stock_account: unused onchanges --- addons/stock_account/models/product.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/addons/stock_account/models/product.py b/addons/stock_account/models/product.py index f7ba6e6f805..b3ecdc62dc7 100644 --- a/addons/stock_account/models/product.py +++ b/addons/stock_account/models/product.py @@ -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."""