Skip to content
Snippets Groups Projects
Commit 52802be9 authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] purchase: Purchase report filter


The filter for Purchase orders in the Purchase report did not filter out Sent RFQ,
despite the fact that they were not really ordered yet.

opw:2158248

closes odoo/odoo#43526

Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
parent 6e8b3b97
No related branches found
No related tags found
No related merge requests found
......@@ -54,8 +54,8 @@
<field name="model">purchase.report</field>
<field name="arch" type="xml">
<search string="Purchase Orders">
<filter string="Quotations" name="quotes" domain="[('state','=','draft')]"/>
<filter string="Orders" name="orders" domain="[('state','!=','draft'),('state','!=','cancel')]"/>
<filter string="Quotations" name="quotes" domain="[('state','in',('draft','sent'))]"/>
<filter string="Orders" name="orders" domain="[('state','!=','draft'), ('state','!=','sent'), ('state','!=','cancel')]"/>
<filter string="Purchased Last 365 Days" name="last_year_purchase"
domain="[('date_order', '&gt;', (context_today() - relativedelta(days=365)).strftime('%Y-%m-%d'))]"/>
<field name="partner_id"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment