minor fix
This commit is contained in:
parent
d35a96c7fe
commit
c3dcbf11d5
3
sale.py
3
sale.py
|
@ -418,7 +418,8 @@ class Sale(metaclass=PoolMeta):
|
||||||
|
|
||||||
description = args.get('description', '')
|
description = args.get('description', '')
|
||||||
comment = args.get('comment', '')
|
comment = args.get('comment', '')
|
||||||
today = date.today()
|
date_ = datetime.now() - timedelta(hours=5)
|
||||||
|
today = date(date_.year, date_.month, date_.day)
|
||||||
to_create = {
|
to_create = {
|
||||||
'consumer': args['consumer']['id'],
|
'consumer': args['consumer']['id'],
|
||||||
'source': args['source']['id'],
|
'source': args['source']['id'],
|
||||||
|
|
Loading…
Reference in New Issue