Commit 1dbeeaa8 by François C.

Include requested start and end dates for orders exports

parent a9ec8fc3
...@@ -50,8 +50,8 @@ class PurchaseOrder(models.Model): ...@@ -50,8 +50,8 @@ class PurchaseOrder(models.Model):
LEFT JOIN stock_picking as sp ON po.name=sp.origin LEFT JOIN stock_picking as sp ON po.name=sp.origin
LEFT JOIN res_partner as rp ON po.partner_id=rp.id LEFT JOIN res_partner as rp ON po.partner_id=rp.id
WHERE sp.date_done IS NOT NULL WHERE sp.date_done IS NOT NULL
AND sp.date_done > '{date_from}' AND sp.date_done >= '{date_from}'
AND sp.date_done < '{date_to}' AND sp.date_done <= '{date_to}'
ORDER BY sp.date_done ASC ORDER BY sp.date_done ASC
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment