Commit Graph

17 Commits

Author SHA1 Message Date
mymage
f493ced509 Translated using Weblate (Italian)
Currently translated at 100.0% (6 of 6 strings)

Translation: stock-logistics-warehouse-14.0/stock-logistics-warehouse-14.0-stock_move_auto_assign
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_move_auto_assign/it/
2024-01-15 11:34:02 +00:00
mymage
3a201b238f Added translation using Weblate (Italian) 2023-12-24 17:24:47 +00:00
OCA-git-bot
22ba45483e [UPD] README.rst 2023-09-03 17:18:16 +00:00
OCA-git-bot
8a13d29627 stock_move_auto_assign 14.0.1.2.0 2023-04-04 17:05:58 +00:00
Thierry Ducrest
d43985a443 stock_move_auto_assign: update tests to use job traps 2023-03-10 15:01:14 +01:00
Thierry Ducrest
41416c1d7d stock_move_auto_assign_auto_release: backport from 16
This module is being backported from v16, related PR:

* https://github.com/OCA/stock-logistics-warehouse/pull/1560
2023-03-06 11:24:13 +01:00
Laurent Mignon (ACSONE)
b32c5e15ee [ADD] stock_move_auto_assign_auto_release: moves auto release on automatic move assign 2023-03-06 11:24:13 +01:00
Laurent Mignon (ACSONE)
237924ec50 [IMP] stock_move_auto_assign: Update tests to uses the new assert system from queue_job 2023-03-06 11:24:13 +01:00
Laurent Mignon (ACSONE)
bbb4a6a175 [IMP] stock_move_auto_assign: Extract SQL locking logic into a dedicated method 2023-03-06 11:24:13 +01:00
OCA-git-bot
5f2c5735f7 stock_move_auto_assign 14.0.1.1.0 2023-02-08 10:59:32 +00:00
Laurent Mignon (ACSONE)
7ec0717e27 [IMP] stock_move_auto_assign: Auto reassign on move cancelation 2023-02-01 11:31:29 +01:00
OCA-git-bot
0395ae08d7 [UPD] README.rst 2021-10-08 09:06:00 +00:00
oca-travis
fce3044b3b [UPD] Update stock_move_auto_assign.pot 2021-10-08 08:18:10 +00:00
Tran Thanh Phuc
c0f9845a67 [MIG] stock_move_auto_assign: Migration to 14.0 2021-10-08 07:13:01 +07:00
Guewen Baconnier
aec61b5aed Remove @job decorator
Following changes in https://github.com/OCA/queue/pull/274
2021-10-08 07:13:01 +07:00
Guewen Baconnier
11deadb394 Fix concurrency race condition on picking state
When the 2 last moves of a stock.picking are assigned at the same
time by 2 jobs (different products both available), none of the
transaction will see that it is the last move to be assigned. As a
result, the picking will stay in state "confirmed" even if all its
moves are assigned.

Lock the stock.picking records when we call auto_assign.
If we have many pickings touched for the same product, the lock
can be quite large, so we may have to find a better option.

I could not write a test to exercise this, because we can't have 2
transactions being aware of it, even if we create the picking in demo
data as tests can be run during install.
2021-10-08 07:13:01 +07:00
Guewen Baconnier
d617c4ea4d Add stock_move_auto_assign
Automatically check availability of stock moves when a move is set to "done".

It uses queue jobs to verify the availability in order to have a minimal impact
on the user operations.

The conditions to trigger the check are:

* A move is marked as done
* The destination locations of the move lines are internal
* The move doesn't have successors in a chain of moves

At this point, jobs are generated:

* One job per product
* Any move waiting for stock in a parent (or same) location of the internal
  destination locations from the done move has its availability checked

Only one job is generated for an identical set of (product, locations).
2021-10-08 07:13:01 +07:00