Skip to content
Snippets Groups Projects
Commit ecbf6126 authored by tdi-odoo's avatar tdi-odoo Committed by Thibault Delavallée
Browse files

[IMP] purchase: add supplier's pricelist search view filters and groupbys

This improvement adds two default filters and group bys to the supplier
pricelist search view: filters(active,archived) groupby:(product,vendor).
parent 879f2699
Branches
Tags
No related merge requests found
......@@ -505,6 +505,12 @@
<search string="Vendor">
<field name="name"/>
<field name="product_tmpl_id"/>
<filter string="Active" name="active" domain="[('date_end', '&gt;=', (context_today() - datetime.timedelta(days=1)).strftime('%%Y-%%m-%%d'))]"/>
<filter string="Archived" name="archived" domain="[('date_end', '&lt;', (context_today() - datetime.timedelta(days=1)).strftime('%%Y-%%m-%%d'))]"/>
<group expand="0" string="Group By">
<filter string="Product" name="groupby_product" domain="[]" context="{'group_by': 'product_tmpl_id'}"/>
<filter string="Vendor" name="groupby_vendor" domain="[]" context="{'group_by': 'name'}"/>
</group>
</search>
</field>
</record>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment