Skip to content
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

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

AungKoKoLin1997
Copy link
Contributor

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 16.0-fix-stock_picking_auto_create_lot branch from 3d0264e to 4f3dbb2 Compare February 23, 2024 05:00
@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 16.0-fix-stock_picking_auto_create_lot branch from 4f3dbb2 to 9cb7303 Compare February 26, 2024 02:03
#. 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 "プロダクト移動(在庫移動明細)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
msgstr "プロダクト移動在庫移動明細"
msgstr "プロダクト移動(在庫移動明細)"

Copy link
Contributor

@liuhehe1995 liuhehe1995 left a 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.

@liuhehe1995 liuhehe1995 force-pushed the 16.0-fix-stock_picking_auto_create_lot branch from a587e22 to a5dbcd8 Compare February 28, 2024 06:14
Comment on lines 25 to 41

# 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
Copy link
Contributor

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

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 16.0-fix-stock_picking_auto_create_lot branch from 77a225b to 7d3a1b7 Compare March 6, 2024 07:00
@AungKoKoLin1997 AungKoKoLin1997 requested a review from kanda999 March 6, 2024 07:01
@yostashiro yostashiro changed the title [16.0][4337][FIX] stock_picking_auto_create_lot: fix creating lot for 0 qty move lines for serial product [4337][FIX] stock_picking_auto_create_lot: fix creating lot for 0 qty move lines for serial product Mar 19, 2024
Copy link
Contributor

@kanda999 kanda999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functioanl test: LGTM

@AungKoKoLin1997
Copy link
Contributor Author

I will update to reflect latest OCA changes after #144 is merged to avoid breaking behaviour of customer staging.

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 16.0-fix-stock_picking_auto_create_lot branch from 97d0ea3 to 7d3a1b7 Compare July 12, 2024 10:06
@@ -1,39 +1,12 @@
# Copyright 2020 ACSONE SA/NV
# Copyright 2024 Quartile Limited
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Copyright 2024 Quartile Limited
# Copyright 2020 ACSONE SA/NV
# Copyright 2024 Quartile Limited

Please don't remove this.

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AungKoKoLin1997
I understood.

@kanda999 kanda999 merged commit df86834 into 16.0 Jul 23, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants