[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
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue