fix: Always set required date based on min date on item table
This commit is contained in:
parent
0bb99c15e5
commit
a113861b0c
@ -695,8 +695,8 @@ class BuyingController(StockController):
|
||||
def validate_schedule_date(self):
|
||||
if not self.get("items"):
|
||||
return
|
||||
if not self.schedule_date:
|
||||
self.schedule_date = min([d.schedule_date for d in self.get("items")])
|
||||
|
||||
self.schedule_date = min([d.schedule_date for d in self.get("items")])
|
||||
|
||||
if self.schedule_date:
|
||||
for d in self.get('items'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user