Skip to content

Commit

Permalink
fix: production plan issue with sales order (backport #39901) (#39903)
Browse files Browse the repository at this point in the history
fix:  production plan issue with sales order (#39901)

(cherry picked from commit d0df5df)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Feb 14, 2024
1 parent d0b9c56 commit ab7e323
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,10 @@ def get_production_items(self):
"project": self.project,
}

key = (d.item_code, d.sales_order, d.warehouse)
key = (d.item_code, d.sales_order, d.sales_order_item, d.warehouse)
if self.combine_items:
key = (d.item_code, d.sales_order, d.warehouse)

if not d.sales_order:
key = (d.name, d.item_code, d.warehouse)

Expand Down

0 comments on commit ab7e323

Please sign in to comment.