minor fix

This commit is contained in:
Wilson Gomez 2023-05-20 11:37:19 -05:00
parent d35a96c7fe
commit c3dcbf11d5

View file

@ -418,7 +418,8 @@ class Sale(metaclass=PoolMeta):
description = args.get('description', '')
comment = args.get('comment', '')
today = date.today()
date_ = datetime.now() - timedelta(hours=5)
today = date(date_.year, date_.month, date_.day)
to_create = {
'consumer': args['consumer']['id'],
'source': args['source']['id'],