Skip to content

Commit

Permalink
fix: production plan issue with sales order (#39901)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure committed Feb 14, 2024
1 parent 6239fd7 commit d0df5df
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,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 d0df5df

Please sign in to comment.