Commit Graph

147 Commits

Author SHA1 Message Date
OCA-git-bot
06fb1797ae [UPD] README.rst 2022-11-14 09:34:23 +00:00
OCA-git-bot
cf785d3f57 [UPD] addons table in README.md 2022-11-14 09:34:22 +00:00
oca-ci
cc8914d268 [UPD] Update stock_helper.pot 2022-11-14 09:31:47 +00:00
OCA-git-bot
4921d659dc Merge PR #1539 into 16.0
Signed-off-by rousseldenis
2022-11-14 09:29:47 +00:00
Laurent Mignon (ACSONE)
3332bd22db [MIG] stock_helper: Migration to 16.0 2022-11-07 15:03:02 +01:00
OCA-git-bot
7284b0a432 [UPD] README.rst 2022-11-07 13:35:50 +01:00
oca-ci
b2084e9504 [UPD] Update stock_helper.pot 2022-11-07 13:35:50 +01:00
Christopher Ormaza
e677438505 [15.0][MIG] stock_helper 2022-11-07 13:35:50 +01:00
OCA-git-bot
0a1cb2cb37 [UPD] README.rst 2022-11-07 13:35:50 +01:00
oca-travis
74bfef9f12 [UPD] Update stock_helper.pot 2022-11-07 13:35:50 +01:00
davidborromeo
5d30c32f79 [MIG] stock_helper: Migration to 14.0 2022-11-07 13:35:50 +01:00
OCA-git-bot
91507c2a52 stock_helper 13.0.1.1.0 2022-11-07 13:35:50 +01:00
OCA-git-bot
2beec07044 [ADD] icon.png 2022-11-07 13:35:50 +01:00
OCA-git-bot
933ccbcc22 [UPD] README.rst 2022-11-07 13:35:50 +01:00
oca-travis
e20f8e544d [UPD] Update stock_helper.pot 2022-11-07 13:35:50 +01:00
Guewen Baconnier
773529b6d1 Apply suggestions from code review
Co-authored-by: Simone Orsi <simahawk@users.noreply.github.com>
2022-11-07 13:35:50 +01:00
Guewen Baconnier
1e6f433922 Add stock_helper: share common code used by stock modules
The first method is: StockLocation.is_sublocation_of()

This method is currently used in:

* wms/stock_dynamic_routing
* wms/shopfloor
* wms/stock_move_source_relocate
* stock-logistics-warehouse/stock_reserve_rule
* ddmrp/ddmrp

The goal will be to use this module as dependency instead of
reimplementing the method in each.

Other methods should follow in "stock_helper".

Note: I opened https://github.com/odoo/odoo/pull/53866 to propose a
generic version of this method, expecting odoo's opinion, but got no
answer.
2022-11-07 13:35:50 +01:00
Weblate
e661818253 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_warehouse_calendar
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_warehouse_calendar/
2022-11-04 16:20:31 +00:00
Weblate
5365338c93 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-04 16:20:31 +00:00
OCA-git-bot
cf9e54aeb8 [ADD] setup.py 2022-11-04 16:12:50 +00:00
OCA-git-bot
80f02e5ab5 [UPD] README.rst 2022-11-04 16:12:50 +00:00
OCA-git-bot
ab7c01a49d [UPD] addons table in README.md 2022-11-04 16:12:49 +00:00
oca-ci
3f0f63fdcd [UPD] Update stock_warehouse_calendar.pot 2022-11-04 16:10:30 +00:00
OCA-git-bot
cc69926ff5 Merge PR #1501 into 16.0
Signed-off-by sebalix
2022-11-04 16:08:27 +00:00
OCA-git-bot
a508329280 [ADD] setup.py 2022-11-04 16:07:06 +00:00
OCA-git-bot
f62e9f7ae3 [UPD] README.rst 2022-11-04 16:07:06 +00:00
OCA-git-bot
b3ac802737 [UPD] addons table in README.md 2022-11-04 16:07:05 +00:00
oca-ci
380eb3b5cd [UPD] Update stock_location_product_restriction.pot 2022-11-04 16:04:10 +00:00
OCA-git-bot
f650fc0196 Merge PR #1510 into 16.0
Signed-off-by sebalix
2022-11-04 16:01:56 +00:00
OCA-git-bot
f16befea9d [ADD] setup.py 2022-11-04 15:59:43 +00:00
OCA-git-bot
70c5c21e72 [UPD] README.rst 2022-11-04 15:59:43 +00:00
OCA-git-bot
97c82650ea [UPD] addons table in README.md 2022-11-04 15:59:42 +00:00
oca-ci
c299143ff2 [UPD] Update stock_move_auto_assign.pot 2022-11-04 15:57:30 +00:00
OCA-git-bot
fe92d05043 Merge PR #1531 into 16.0
Signed-off-by sebalix
2022-11-04 15:55:28 +00:00
OCA-git-bot
79ee8bd0b0 [ADD] setup.py 2022-11-04 14:13:06 +00:00
OCA-git-bot
12b4db15f9 [UPD] addons table in README.md 2022-11-04 14:13:05 +00:00
OCA-git-bot
f92de13270 Merge PR #1519 into 16.0
Signed-off-by sebalix
2022-11-04 14:10:20 +00:00
Maria Sparenberg
6a4d2af8aa Added translation using Weblate (German) 2022-11-04 12:45:15 +00:00
Laurent Mignon (ACSONE)
eb3066af90 [MIG] stock_move_auto_assign: Migration to 16.0 2022-11-03 15:16:30 +01:00
OCA-git-bot
14b9a3c0de [UPD] README.rst 2022-11-03 15:07:32 +01:00
oca-travis
de024a5b84 [UPD] Update stock_move_auto_assign.pot 2022-11-03 15:07:32 +01:00
Tran Thanh Phuc
feb70a55e4 [MIG] stock_move_auto_assign: Migration to 14.0 2022-11-03 15:07:32 +01:00
Guewen Baconnier
9dea80caba Remove @job decorator
Following changes in https://github.com/OCA/queue/pull/274
2022-11-03 15:07:32 +01:00
Guewen Baconnier
e32fefa078 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.
2022-11-03 15:07:32 +01:00
Guewen Baconnier
be3b4b2857 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).
2022-11-03 15:07:32 +01:00
Denis Roussel
c1d773128a [REM] stock_package_type_button_box: Make it uninstallable as in core
Since de87a78e09,
this is not necesarry anymore
2022-10-26 14:56:33 +02:00
OCA-git-bot
88b3271e8e [ADD] setup.py 2022-10-20 11:30:29 +00:00
OCA-git-bot
9ddbb97031 [UPD] README.rst 2022-10-20 11:30:29 +00:00
OCA-git-bot
77c407f731 [UPD] addons table in README.md 2022-10-20 11:30:28 +00:00
oca-ci
2ab9adc3f8 [UPD] Update stock_package_type_button_box.pot 2022-10-20 11:27:55 +00:00