Skip to content
Snippets Groups Projects
Commit bb8bef5c authored by Touati Djamel (otd)'s avatar Touati Djamel (otd)
Browse files

[FIX] product: display pricelists that have no defined end date


Steps to reproduce the bug:
- Go to purchase > Configuration > Vendor Pricelists
- Filters > select the “Active” filter

Problem:
Currently, the filter does not include records that do not have a specified `”date_end”`, even though they are considered active.

Opw-2659829

closes odoo/odoo#78515

Signed-off-by: default avatarWilliam Henrotin <Whenrow@users.noreply.github.com>
parent cab1b34d
No related branches found
No related tags found
No related merge requests found
......@@ -608,7 +608,7 @@
<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="Active" name="active" domain="['|', ('date_end', '=', False), ('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'}"/>
......
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