Commit Graph

270 Commits

Author SHA1 Message Date
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
OCA-git-bot
2348cff363 [UPD] addons table in README.md 2022-12-05 08:04:40 +00:00
oca-ci
789cb12aa4 [UPD] Update stock_move_common_dest.pot 2022-12-05 08:01:25 +00:00
OCA-git-bot
f7ce4995cd Merge PR #1566 into 16.0
Signed-off-by rousseldenis
2022-12-05 07:58:43 +00:00
hda
a03ce5cf86 [MIG] stock_move_common_dest: Migration to 16.0 2022-12-02 11:53:45 +01:00
hda
be96239361 [IMP] stock_move_common_dest: black, isort, prettier 2022-11-30 17:10:54 +01:00
mymage
d7fb51f1dc Translated using Weblate (Italian)
Currently translated at 100.0% (7 of 7 strings)

Translation: stock-logistics-warehouse-14.0/stock-logistics-warehouse-14.0-stock_move_common_dest
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_move_common_dest/it/
2022-11-30 17:10:12 +01:00
mymage
72cc6d0476 Added translation using Weblate (Italian) 2022-11-30 17:10:12 +01:00
OCA-git-bot
44255e4d40 [UPD] README.rst 2022-11-30 17:10:12 +01:00
oca-travis
603c1a15fa [UPD] Update stock_move_common_dest.pot 2022-11-30 17:10:12 +01:00
hparfr
866d32e1e5 stock_move_common_dest: !fixup flush before SELECT 2022-11-30 17:10:12 +01:00
hparfr
965b93e12f stock_move_common_dest: !fixup use FALSE_DOMAIN 2022-11-30 17:10:12 +01:00
Sébastien BEAU
9d09e3541d [MIG] stock_move_common_dest: Migration to 14.0 2022-11-30 17:10:12 +01:00
OCA-git-bot
393a9f312b stock_move_common_dest 13.0.1.1.0 2022-11-30 17:10:12 +01:00
Guewen Baconnier
eb592618ce Fix warning in stock_move_common_dest
In this module: https://github.com/OCA/stock-logistics-warehouse/pull/808
A computed field uses "common_dest_move_ids" as dependency:

    @api.depends(
        "picking_type_id.display_completion_info",
        "move_lines.common_dest_move_ids.state",
    )
    def _compute_completion_info(self):

Which has the following effect when the ORM triggers changes:

odoo.osv.expression: Non-stored field stock.move.common_dest_move_ids cannot be searched.

Implement a search method to prevent this.
2022-11-30 17:10:12 +01:00
OCA-git-bot
92e40ce917 [ADD] icon.png 2022-11-30 17:10:12 +01:00
oca-travis
a54b44017e [UPD] Update stock_move_common_dest.pot 2022-11-30 17:10:12 +01:00
Akim Juillerat
dd1a1b8110 Add module stock_move_common_dest 2022-11-30 17:10:12 +01:00
Weblate
6e8ebc9981 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-stock_demand_estimate
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_demand_estimate/
2022-11-22 16:12:36 +00:00
OCA-git-bot
55e3cd20cb [ADD] setup.py 2022-11-22 15:25:14 +00:00
OCA-git-bot
f74be56d39 [UPD] README.rst 2022-11-22 15:25:14 +00:00
OCA-git-bot
d1e6d09e56 [UPD] addons table in README.md 2022-11-22 15:25:11 +00:00
oca-ci
a4cc9d3f8d [UPD] Update stock_demand_estimate.pot 2022-11-22 15:22:30 +00:00
OCA-git-bot
81c69c75ac Merge PR #1553 into 16.0
Signed-off-by rousseldenis
2022-11-22 15:20:26 +00:00
Weblate
3c93b68d38 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-stock_location_product_restriction
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_location_product_restriction/
2022-11-22 15:10:19 +00:00
Weblate
8d13402d97 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-stock_mts_mto_rule
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_mts_mto_rule/
2022-11-22 15:10:19 +00:00
oca-ci
4682f607c4 [UPD] Update stock_mts_mto_rule.pot 2022-11-22 15:07:22 +00:00