Commit Graph

6 Commits

Author SHA1 Message Date
Denis Roussel
525f42035a [MIG][16.0] stock_location_zone 2022-12-07 11:58:27 +01:00
Tran Thanh Phuc
050640d9eb [MIG] stock_location_zone: Migration to 14.0 2022-12-07 11:41:53 +01:00
Guewen Baconnier
463c3c7fff Add area location relation
So we can use it in group-by and filters. Note that we can have several
levels of areas... only the top-level will be used.

This commit fixes the computed field dependencies:
_compute_location_kind should have a dependency on both it's parent's
location_kind and on its child_ids to know if we are in a bin. This
can't work without triggering an infinite loop. The trick used here is
to split the computation of 'zone_location_id + area_location_id' in one
computed method, and move the computation of the kind in a different
method with triggers an the current record's zone_location +
area_location_id, but not on the parent.

Plus the zone_location_id and area_location_id do not depend anymore on
the parent's kind, which is the reason for the infinite loop.
2022-12-07 11:41:53 +01:00
Akim Juillerat
a615a7a265 Rework stock_location_zone 2022-12-07 11:41:53 +01:00
Guewen Baconnier
5367dff997 Set Alpha development status
* Add copyright header
* Add myself as contributor of stock_location_zone
* Fix lint
2022-12-07 11:41:53 +01:00
Jacques-Etienne Baudoux
74b2135059 [ADD] stock_location_zone 2022-12-07 11:41:53 +01:00