mirror of
https://bitbucket.org/presik/trytonpsk-sale_pos_frontend_rest.git
synced 2023-12-14 06:12:59 +01:00
minor fix
This commit is contained in:
parent
11b31b6019
commit
3ff7dca5b6
1 changed files with 1 additions and 1 deletions
2
sale.py
2
sale.py
|
@ -217,7 +217,7 @@ class Sale(metaclass=PoolMeta):
|
|||
('type', '=', 'production'),
|
||||
])
|
||||
location_ = locations[0] if locations else None
|
||||
if not line.sale:
|
||||
if not hasattr(line, 'sale'):
|
||||
return
|
||||
sale = line.sale
|
||||
date_ = sale.sale_date
|
||||
|
|
Loading…
Reference in a new issue