fix: Avoid Impact on Repack Entry

- Repack entries must be considered for fg/scrap checkbox auto set
- This must be avoided only for Manufacture entries, due to confusion between scrap and fg
- No scrap in repack, so its straight forward

(cherry picked from commit 22809a2838)
This commit is contained in:
marination
2021-12-28 13:23:27 +05:30
committed by mergify-bot
parent fdf5811c27
commit 59aaef3719

View File

@@ -708,7 +708,7 @@ class StockEntry(StockController):
finished_item = self.get_finished_item()
if not finished_item:
if not finished_item and self.purpose == "Manufacture":
# In case of independent Manufacture entry, don't auto set
# user must decide and set
return