Commit Graph

1396 Commits

Author SHA1 Message Date
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
OCA-git-bot
82e3c47723 stock_quant_manual_assign 15.0.1.2.0 2022-10-29 20:36:25 +02:00
Yoshi Tashiro
80b596a237 [IMP] stock_quant_manual_assign: make quant search flexible
This is to make it easier to manipulate with the domain conditions
and search results for available quants.
2022-10-29 20:36:25 +02:00
OCA-git-bot
6b81ad9496 stock_quant_manual_assign 15.0.1.1.1 2022-10-29 20:36:25 +02:00
Lois Rilo
cd2942bca6 [FIX] stock_quant_manual_assign: fix access error issues
When not all features are activated in inventory (locations, lots,
packages and owners) selecting a quant would raise an access error.

It is not possible to directly read the related fields, e.g
`self.lot_id`, because they are stored fields and have a group
restriction, so an access error would raise. To work around it,
we should access these fields from the quant:
`self.quant_id.lot_id`.
2022-10-29 20:36:25 +02:00
OCA-git-bot
7f47c3c17a stock_quant_manual_assign 15.0.1.1.0 2022-10-29 20:36:25 +02:00
Miquel Raïch
502a049862 [IMP] stock_quant_manual_assign: make several columns sortable in wizard 2022-10-29 20:36:25 +02:00
OCA-git-bot
a242462f8f [UPD] README.rst 2022-10-29 20:36:25 +02:00
oca-ci
d525ef3486 [UPD] Update stock_quant_manual_assign.pot 2022-10-29 20:36:25 +02:00
Jasmin Solanki
99598c0974 [MIG] stock_quant_manual_assign: Migration to 15.0 2022-10-29 20:36:25 +02:00
Rémi
f676a5ba5f Translated using Weblate (French)
Currently translated at 100.0% (31 of 31 strings)

Translation: stock-logistics-warehouse-14.0/stock-logistics-warehouse-14.0-stock_quant_manual_assign
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_quant_manual_assign/fr/
2022-10-29 20:36:25 +02:00
OCA Transbot
822ab58686 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-14.0/stock-logistics-warehouse-14.0-stock_quant_manual_assign
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-14-0/stock-logistics-warehouse-14-0-stock_quant_manual_assign/
2022-10-29 20:36:25 +02:00
OCA-git-bot
4eebf48ea4 stock_quant_manual_assign 14.0.1.1.0 2022-10-29 20:36:25 +02:00
oca-travis
378aee6269 [UPD] Update stock_quant_manual_assign.pot 2022-10-29 20:36:25 +02:00
Lois Rilo
f564392ddb [IMP] stock_quant_manual_assign: add prepare lines method 2022-10-29 20:36:25 +02:00
Yoshi Tashiro
ae5744c083 [IMP] stock_quant_manual_assign: make qty_done fill optional
There are cases where auto-filling of qty_done of stock move line is not desirable.
e.g. you assign quants manually for some of the moves in a picking and not the others,
in such case you need to go over all the moves in the picking to either remove qty_done
or fill it in to proceed with the validation of the entire moves. Auto-fill behavior is
also troublesome when this function is used in a manufacturing order. i.e. having
qty_done of the component move live messes up the outcome of the production.
2022-10-29 20:36:25 +02:00
OCA-git-bot
4207ed7f71 [UPD] README.rst 2022-10-29 20:36:25 +02:00
oca-travis
568d9c9b3d [UPD] Update stock_quant_manual_assign.pot 2022-10-29 20:36:25 +02:00
Fanha Giang
e62d14706a [MIG] stock_quant_manual_assign: Migration to 14.0 2022-10-29 20:36:25 +02:00
OCA Transbot
81e6d0d17c 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_quant_manual_assign
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_quant_manual_assign/
2022-10-29 20:36:25 +02:00
OCA-git-bot
25c0218430 [UPD] README.rst 2022-10-29 20:36:25 +02:00
mreficent
c6ef04e0bd [UPD] Eficent -> ForgeFlow 2022-10-29 20:36:25 +02:00
OCA Transbot
3775323bd2 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_quant_manual_assign
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_quant_manual_assign/
2022-10-29 20:36:25 +02:00
OCA-git-bot
880d5a4212 [UPD] README.rst 2022-10-29 20:36:25 +02:00
oca-travis
d11e9b24a7 [UPD] Update stock_quant_manual_assign.pot 2022-10-29 20:36:25 +02:00
Tony Gu
0d22dd8283 [MIG] stock_quant_manual_assign: Migration to 13.0 2022-10-29 20:36:25 +02:00
Tony Gu
383c8a41a2 [IMP] stock_quant_manual_assign: black, isort, prettier 2022-10-29 20:36:25 +02:00
Lois Rilo
6d6f0ac99b [12.0][MIG] stock_quant_manual_assign 2022-10-29 20:36:25 +02:00
oca-travis
0080957d4e [UPD] Update stock_quant_manual_assign.pot 2022-10-29 20:36:25 +02:00
Pedro M. Baeza
7f2a663214 [IMP] stock_quant_manual_assign: Add owner to criteria + reorder fields + add security groups + hook 2022-10-29 20:36:25 +02:00
Pedro M. Baeza
e892563108 [FIX] stock_quant_manual_assign: Related fields are not filled if not default them 2022-10-29 20:36:25 +02:00
Pedro M. Baeza
c559485d23 [IMP] stock_quant_manual_assign:
* Better layout
* Remove active_id dependency in some computed fields
* Clean code
* Refine constraint
* Take into account if the current line is previously reserved before clicking on the button.
2022-10-29 20:36:25 +02:00
cubells
45b7d5b48f [MIG] stock_quant_manual_assign: Migration to 11.0 2022-10-29 20:36:25 +02:00
Fanha Giang
22ede1fba9 11.0-mig-stock_quant_manual_assign 2022-10-29 20:36:25 +02:00
Fanha Giang
85e0c8c695 [MIG] stock_quant_manual_assign: Migration to 10.0 2022-10-29 20:36:25 +02: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
OCA-git-bot
1f4ed384fb Merge PR #1509 into 16.0
Signed-off-by dreispt
2022-10-20 11:26:04 +00:00
Denis Roussel
9c7e5cef8b [16.0][MIG] stock_location_product_restriction 2022-10-20 10:48:22 +02:00
Denis Roussel
7b67e18e19 [IMP] stock_location_product_restriction: pre-commit stuff 2022-10-19 12:11:03 +02:00
OCA-git-bot
29038b77a4 stock_location_product_restriction 10.0.1.0.2 2022-10-19 12:05:32 +02:00
OCA-git-bot
5d7c466977 stock_location_product_restriction 10.0.1.0.1 2022-10-19 12:05:29 +02:00
OCA-git-bot
cac9838b63 [UPD] README.rst 2022-10-19 12:05:29 +02:00
oca-travis
65d58ddcf7 [UPD] Update stock_location_product_restriction.pot 2022-10-19 12:05:29 +02:00