Commit Graph

149 Commits

Author SHA1 Message Date
Guewen Baconnier
855a2ae2f5 [IMP] stock_location_zone: black, isort 2021-02-10 21:42:11 +07:00
oca-travis
acc6eec464 [UPD] Update stock_location_zone.pot 2021-02-10 21:42:11 +07:00
Guewen Baconnier
38b60fbbf7 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.
2021-02-10 21:42:11 +07:00
Guewen Baconnier
a29a178e88 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
2021-02-10 21:42:11 +07:00
Guewen Baconnier
21f2f946e7 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.
2021-02-10 21:42:11 +07:00
Akim Juillerat
ef7732288d Rework stock_location_zone 2021-02-10 21:42:11 +07:00
Guewen Baconnier
df90f22386 Set Alpha development status
* Add copyright header
* Add myself as contributor of stock_location_zone
* Fix lint
2021-02-10 21:42:11 +07:00
Guewen Baconnier
bc2babe36d 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
2021-02-10 21:42:11 +07:00
Jacques-Etienne Baudoux
8144f4302d [ADD] stock_location_zone 2021-02-10 21:42:11 +07:00
OCA-git-bot
7d3106e48d [UPD] addons table in README.md 2021-02-09 15:46:50 +00:00
OCA-git-bot
0d0e6c461a stock_available 14.0.1.0.1 2021-02-09 15:46:34 +00:00
OCA-git-bot
eeca24f257 [ADD] setup.py 2021-02-09 15:46:34 +00:00
OCA-git-bot
82cc7e1672 [UPD] README.rst 2021-02-09 15:46:33 +00:00
OCA-git-bot
9fdc3d6554 [UPD] addons table in README.md 2021-02-09 15:46:32 +00:00
oca-travis
0b5905f794 [UPD] Update stock_available.pot 2021-02-09 15:29:55 +00:00
OCA-git-bot
c8794f2a64 Merge PR #1037 into 14.0
Signed-off-by rousseldenis
2021-02-09 15:09:55 +00:00
OCA-git-bot
4772d4c087 [UPD] addons table in README.md 2021-02-05 10:01:19 +00:00
OCA-git-bot
3e61c2bdeb stock_packaging_calculator 14.0.1.0.1 2021-02-05 10:01:09 +00:00
OCA-git-bot
f24b98e4ef [ADD] setup.py 2021-02-05 10:01:09 +00:00
OCA-git-bot
bb61a62201 [UPD] README.rst 2021-02-05 10:01:08 +00:00
OCA-git-bot
b7d37f223d [UPD] addons table in README.md 2021-02-05 10:01:07 +00:00
oca-travis
a5ee5da594 [UPD] Update stock_packaging_calculator.pot 2021-02-05 09:49:42 +00:00
OCA-git-bot
061cc50db0 Merge PR #1050 into 14.0
Signed-off-by rousseldenis
2021-02-05 09:44:51 +00:00
OCA-git-bot
b9bd28bcaa [ADD] setup.py 2021-01-26 16:33:25 +00:00
OCA-git-bot
eaddd28117 [ADD] icon.png 2021-01-26 16:33:25 +00:00
OCA-git-bot
1a0e07246d [UPD] README.rst 2021-01-26 16:33:24 +00:00
OCA-git-bot
ce2f27ff72 [UPD] addons table in README.md 2021-01-26 16:33:23 +00:00
oca-travis
2c27844912 [UPD] Update stock_free_quantity.pot 2021-01-26 16:22:17 +00:00
OCA-git-bot
489b3a2580 Merge PR #1042 into 14.0
Signed-off-by pedrobaeza
2021-01-26 16:17:17 +00:00
Florian da Costa
70dca0848a [ADD] stock_free_qty 2021-01-14 16:18:44 +01:00
OCA-git-bot
288f7ec7ec [ADD] setup.py 2021-01-08 15:52:54 +00:00
OCA-git-bot
363c91b279 [UPD] README.rst 2021-01-08 15:52:54 +00:00
OCA-git-bot
ee9aec7a83 [UPD] addons table in README.md 2021-01-08 15:52:52 +00:00
oca-travis
63b87c0ddd [UPD] Update stock_inventory_include_exhausted.pot 2021-01-08 15:41:39 +00:00
OCA-git-bot
47a25d4249 Merge PR #1049 into 14.0
Signed-off-by pedrobaeza
2021-01-08 15:36:21 +00:00
Sébastien BEAU
38f3b3cbaa [MIG] stock_packaging_calculator: Migration to 14.0 2021-01-06 15:03:10 +01:00
Sébastien BEAU
02ba4eebfe [IMP] stock_packaging_calculator: black, isort, prettier 2021-01-06 15:03:10 +01:00
OCA-git-bot
5c2e751416 stock_packaging_calculator 13.0.1.6.0 2021-01-06 15:03:05 +01:00
Simone Orsi
e713b1d805 packaging_calculator: allow custom value handler
Use _packaging_values_handler ctx key to pass your own handler
for specific on demand overrides.
2021-01-06 15:03:05 +01:00
Simone Orsi
5d0de4b143 packaging_calculator: fix sorting
Make sure unit is always the last element in the list.
2021-01-06 15:03:05 +01:00
Simone Orsi
50f2fd6880 stock_packaging_calculator 13.0.1.5.0 2021-01-06 15:03:05 +01:00
Akim Juillerat
bac56d52ae stock_packaging_calculator: Add hook on packaging values
Fix tests
2021-01-06 15:03:05 +01:00
Tonow-c2c
37d44c72e6 [IMP][stock_packaging_calculator] Add key is_unit for in the packaging calculator return 2021-01-06 15:03:05 +01:00
OCA-git-bot
06aa718841 stock_packaging_calculator 13.0.1.4.0 2021-01-06 15:03:05 +01:00
Simone Orsi
181228f877 Re-license stock_packaging_calculator w/ LGPL 2021-01-06 15:03:05 +01:00
OCA-git-bot
9a4b3a6c46 stock_packaging_calculator 13.0.1.3.0 2021-01-06 15:03:05 +01:00
Simone Orsi
311c50025a stock_packaging_calculator: add support for custom packaging name 2021-01-06 15:03:05 +01:00
Simone Orsi
423cd926c6 stock_packaging_calculator: add support for packaging filter 2021-01-06 15:03:05 +01:00
OCA-git-bot
e77326a25c stock_packaging_calculator 13.0.1.2.0 2021-01-06 15:03:05 +01:00
oca-travis
860555f498 [UPD] Update stock_packaging_calculator.pot 2021-01-06 15:03:05 +01:00