[18.0][MIG] stock_quant_manual_assign: Migration to 18.0#46
[18.0][MIG] stock_quant_manual_assign: Migration to 18.0#46
Conversation
* 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.
…ds + add security groups + hook
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/
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/
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.
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/
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/
Currently translated at 100.0% (34 of 34 strings) Translation: stock-logistics-warehouse-16.0/stock-logistics-warehouse-16.0-stock_quant_manual_assign Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_quant_manual_assign/pt_BR/
This commit fixes the following issues: - The previous code does not handle the immediate transfer scenario when auto_fill_qty_done is selected in the operation type. This raises a missing-record error, trying to update qty_done on non-existing move line records. - move._do_unreserve() keeps existing stock.move.line records if there is some qty_done set, which is not a desirable outcome. All the linked move line records should be unlinked before selected quants are assigned.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: stock-logistics-warehouse-17.0/stock-logistics-warehouse-17.0-stock_quant_manual_assign Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_quant_manual_assign/
Currently translated at 100.0% (30 of 30 strings) Translation: stock-logistics-warehouse-17.0/stock-logistics-warehouse-17.0-stock_quant_manual_assign Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_quant_manual_assign/hr/
|
As required by @jbaudoux in #7 full commit history cc @mav-adhoc |
jbaudoux
left a comment
There was a problem hiding this comment.
Can you reduce the changes in stock_quant_manual_assign/tests/test_stock_quant_manual_assign.py to what is really required ?
stock_quant_manual_assign/tests/test_stock_quant_manual_assign.py
Outdated
Show resolved
Hide resolved
7a8e923 to
eed1a11
Compare
@jbaudoux Changes done |
Tisho99
left a comment
There was a problem hiding this comment.
Thank you for the migration.
I have carried out both a functional and technical review, and the module works very well.
However, I have found two minor issues. Could they be reviewed?
eed1a11 to
d0ec635
Compare
|
I agree with Florian that adding an explanation to the README stating that this feature is already covered by Odoo, and clarifying the reasons for using this module would be very helpful. For me, the main reasons are a better user interface and legacy purposes. |
|
Hi @oihane , Thanks for the migration! There is this commit from v16.0 and pending to merge in v17.0 that would be good to include OCA/stock-logistics-warehouse#2418. Thanks! |
|
@florian-dacosta @Tisho99 Quite difficult to explain |
Tisho99
left a comment
There was a problem hiding this comment.
LGTM. Technical review.
However, I still think that explaining in the README the reason for using this module instead of the native approach would be a very nice improvement, as several users have raised this question.
| @@ -0,0 +1,2 @@ | |||
| from . import models | |||
There was a problem hiding this comment.
This folder could also be deleted, as it is empty
|
This PR has the |

No description provided.