Commit Graph

350 Commits

Author SHA1 Message Date
Denis Roussel
c829b9d068 [UPD] Copier update 2023-01-30 12:09:30 +01:00
OCA-git-bot
27a139ac71 [UPD] addons table in README.md 2022-12-13 08:10:18 +00:00
OCA-git-bot
c13870fb88 stock_location_zone 16.0.1.0.1 2022-12-13 08:10:13 +00:00
OCA-git-bot
153449cb52 [ADD] setup.py 2022-12-13 08:10:13 +00:00
OCA-git-bot
f032252e1f [UPD] README.rst 2022-12-13 08:10:12 +00:00
OCA-git-bot
dd0bf0877e [UPD] addons table in README.md 2022-12-13 08:10:10 +00:00
oca-ci
8206db20b5 [UPD] Update stock_location_zone.pot 2022-12-13 08:07:39 +00:00
OCA-git-bot
73672bf2c8 Merge PR #1571 into 16.0
Signed-off-by rousseldenis
2022-12-13 08:05:29 +00:00
oca-git-bot
c4a05759fb [IMP] update dotfiles [ci skip] 2022-12-12 00:20:16 +01:00
OCA-git-bot
1c6eb6e306 [UPD] addons table in README.md 2022-12-10 10:41:31 +00:00
OCA-git-bot
9db5918b06 stock_move_location 16.0.1.0.1 2022-12-10 10:41:25 +00:00
OCA-git-bot
f3f12134ed [ADD] setup.py 2022-12-10 10:41:25 +00:00
OCA-git-bot
b26eb94801 [UPD] README.rst 2022-12-10 10:41:24 +00:00
OCA-git-bot
418b97750a [UPD] addons table in README.md 2022-12-10 10:41:23 +00:00
oca-ci
dfca69d148 [UPD] Update stock_move_location.pot 2022-12-10 10:38:36 +00:00
OCA-git-bot
9ab84ca9f3 Merge PR #1549 into 16.0
Signed-off-by rousseldenis
2022-12-10 10:36:19 +00:00
Alex Cuellar
3595af3097 [MIG] stock_move_location: Migration to 16.0 2022-12-09 20:39:49 -05:00
Denis Roussel
e02a519487 [IMP] stock_location_zone: Optimize a little affectations 2022-12-07 14:09:53 +01:00
Denis Roussel
b33e158520 [IMP] stock_location_zone: Add tests 2022-12-07 13:49:50 +01:00
Denis Roussel
525f42035a [MIG][16.0] stock_location_zone 2022-12-07 11:58:27 +01:00
Denis Roussel
aa294647a0 [IMP] stock_location_zone: pre-commit stuff 2022-12-07 11:43:33 +01:00
oca-travis
188990e644 [UPD] Update stock_location_zone.pot 2022-12-07 11:41:53 +01:00
OCA-git-bot
6a3b800b6c [UPD] README.rst 2022-12-07 11:41:53 +01:00
Tran Thanh Phuc
050640d9eb [MIG] stock_location_zone: Migration to 14.0 2022-12-07 11:41:53 +01:00
OCA Transbot
68d577aa9f Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-stock_location_zone
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_location_zone/
2022-12-07 11:41:53 +01:00
OCA Transbot
e985570052 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-13.0/stock-logistics-warehouse-13.0-stock_location_zone
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_location_zone/
2022-12-07 11:41:53 +01:00
OCA-git-bot
7d202896ec [UPD] README.rst 2022-12-07 11:41:53 +01:00
oca-travis
f1fd3a557b [UPD] Update stock_location_zone.pot 2022-12-07 11:41:53 +01:00
Guewen Baconnier
fd9a58deea run pre-commit with new prettiers 2022-12-07 11:41:53 +01:00
Guewen Baconnier
9e40e8cd3e [MIG] stock_location_zone: Migration to 13.0 2022-12-07 11:41:53 +01:00
Guewen Baconnier
2570a96f8c [IMP] stock_location_zone: black, isort 2022-12-07 11:41:53 +01:00
oca-travis
42e93a94db [UPD] Update stock_location_zone.pot 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
Guewen Baconnier
817c0032f2 Improve performance
* Compute the 'zone' fields in the same method
* Remove the dependency on 'zone_location_id', which seems to take
  a lot of time if not an infinite loop
2022-12-07 11:41:53 +01:00
Guewen Baconnier
845267ede0 Remove unique constraint on location's name
It prevents other addons to work properly such as the vertical lift.
We remove the constraint for now, maybe to be re-introduced later in a
more permissive way.
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
Guewen Baconnier
9128bf4165 Add corrections to stock_location_zone
* Allow copy of stock locations (was blocked by constraint on unique name)
* Correct loop in _compute_name returning too early if a record had no
parent with a 'location_name_format'
* Rename field pick_type_id to picking_type_id for coherency
* Add missing _description on stock.picking.zone
* Correct location_name_format format when the record is a NewId
2022-12-07 11:41:53 +01:00
Jacques-Etienne Baudoux
74b2135059 [ADD] stock_location_zone 2022-12-07 11:41:53 +01:00
OCA-git-bot
96a801106b [UPD] addons table in README.md 2022-12-06 08:16:10 +00:00
OCA-git-bot
43ba502f86 scrap_reason_code 16.0.1.0.2 2022-12-06 08:16:05 +00:00
OCA-git-bot
ae75c1a106 [ADD] setup.py 2022-12-06 08:16:05 +00:00
OCA-git-bot
ea7bee23e5 [UPD] README.rst 2022-12-06 08:16:05 +00:00
OCA-git-bot
b4a1c8f152 [UPD] addons table in README.md 2022-12-06 08:16:03 +00:00
oca-ci
249cffc743 [UPD] Update scrap_reason_code.pot 2022-12-06 08:12:47 +00:00
OCA-git-bot
b99c5a5629 Merge PR #1541 into 16.0
Signed-off-by rousseldenis
2022-12-06 08:10:37 +00:00
OCA-git-bot
735706bef7 [UPD] addons table in README.md 2022-12-05 08:04:47 +00:00
OCA-git-bot
feca71c2b1 stock_move_common_dest 16.0.1.0.1 2022-12-05 08:04:42 +00:00
OCA-git-bot
bd04f9b0f5 [ADD] setup.py 2022-12-05 08:04:42 +00:00
OCA-git-bot
d23148f794 [UPD] README.rst 2022-12-05 08:04:42 +00:00