Skip to content

Commit

Permalink
Do not store area field
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
guewen committed Sep 13, 2019
1 parent fcc4ae1 commit 3fcf9b9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion stock_location_bin_name/models/stock_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 3fcf9b9

Please sign in to comment.