-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4337][FIX] stock_picking_auto_create_lot: fix creating lot for 0 qty move lines for serial product #109
Conversation
3d0264e
to
4f3dbb2
Compare
4f3dbb2
to
9cb7303
Compare
#. module: stock_picking_auto_create_lot | ||
#: model:ir.model,name:stock_picking_auto_create_lot.model_stock_move_line | ||
msgid "Product Moves (Stock Move Line)" | ||
msgstr "プロダクト移動(在庫移動明細)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msgstr "プロダクト移動(在庫移動明細)" | |
msgstr "プロダクト移動(在庫移動明細)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did functionally test in my development environment.
Work as expected.
Thank you.
a587e22
to
a5dbcd8
Compare
|
||
# pylint: disable=missing-return | ||
def _set_quantities_to_reservation(self): | ||
super()._set_quantities_to_reservation() | ||
for move in self: | ||
if move.state not in ("partially_available", "assigned"): | ||
continue | ||
if ( | ||
move.product_id.tracking == "none" | ||
or not move.product_id.auto_create_lot | ||
or not move.picking_type_id.auto_create_lot | ||
): | ||
continue | ||
for move_line in move.move_line_ids: | ||
if move_line.lot_id: | ||
# Create-backorder wizard would open without this. | ||
move_line.qty_done = move_line.reserved_uom_qty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rebase this PR so that this part is not removed?
This module in axls-oca has OCA updates
… move lines for serial product
77a225b
to
7d3a1b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functioanl test: LGTM
I will update to reflect latest OCA changes after #144 is merged to avoid breaking behaviour of customer staging. |
97d0ea3
to
7d3a1b7
Compare
@@ -1,39 +1,12 @@ | |||
# Copyright 2020 ACSONE SA/NV | |||
# Copyright 2024 Quartile Limited |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Copyright 2024 Quartile Limited | |
# Copyright 2020 ACSONE SA/NV | |
# Copyright 2024 Quartile Limited |
Please don't remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is already removed in OCA because it is removed this file first in OCA repo by another PR that is proposed by other community member. Then, we added this file again because it is needed for some use case. So, I guess we don't need add in our repo as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AungKoKoLin1997
I understood.
4337