[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
parent
ab61edceba
commit
40e782391f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue