[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 start = True
if date_start: if date_start:
start = ( start = (
self.move_id.date self.move_id.invoice_date
or self.move_id.invoice_date or self.move_id.date
or self.create_date.date() or self.create_date.date()
) >= date_start ) >= date_start
return ( return (
start start
and ( and (
self.move_id.date self.move_id.invoice_date
or self.move_id.invoice_date or self.move_id.date
or self.create_date.date() or self.create_date.date()
) )
<= date_check <= date_check