From 3fcf9b969eb3fa43aa4a6469d5364db0166b865d Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Fri, 13 Sep 2019 11:35:31 +0200 Subject: [PATCH] Do not store area field We only need it for the generation -> useless to store it. It slows creation of locations for no value. If we need to search on it, we can use a search method. --- stock_location_bin_name/models/stock_location.py | 1 - 1 file changed, 1 deletion(-) diff --git a/stock_location_bin_name/models/stock_location.py b/stock_location_bin_name/models/stock_location.py index 0ed2cc4bf0cd..5018181c86b9 100644 --- a/stock_location_bin_name/models/stock_location.py +++ b/stock_location_bin_name/models/stock_location.py @@ -19,7 +19,6 @@ class StockLocation(models.Model): area = fields.Char( 'Area', compute='_compute_area', - store=True, ) @api.depends('name', 'location_kind', 'location_id.area')