[IMP] account_sale_stock_report_non_billed:Change dates check order

Change the order of the invoice_date and date fields since the invoice date and the accounting date are different for purchases.
pull/1002/head
Stefan 2023-01-31 12:34:50 +01:00
parent ab61edceba
commit 40e782391f
1 changed files with 4 additions and 4 deletions

View File

@ -12,15 +12,15 @@ class StockMove(models.Model):
start = True
if date_start:
start = (
self.move_id.date
or self.move_id.invoice_date
self.move_id.invoice_date
or self.move_id.date
or self.create_date.date()
) >= date_start
return (
start
and (
self.move_id.date
or self.move_id.invoice_date
self.move_id.invoice_date
or self.move_id.date
or self.create_date.date()
)
<= date_check