Skip to content
Snippets Groups Projects
Commit 69957aec authored by svs-odoo's avatar svs-odoo
Browse files

[IMP] product_expiry: add expiration search filter

Adds a search filter on quant list for expired lot.

Task #1938656
parent 8cec00f9
No related branches found
No related tags found
No related merge requests found
......@@ -42,4 +42,17 @@
</xpath>
</field>
</record>
<record id="quant_search_view_inherit_product_expiry" model="ir.ui.view">
<field name="name">stock.quant.search.inherit</field>
<field name="model">stock.quant</field>
<field name="inherit_id" ref="stock.quant_search_view"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='reserved']" position="after">
<separator/>
<filter string="Expiration Alerts" name="expiration_alerts"
domain="[('removal_date', '&lt;=', context_today().strftime('%Y-%m-%d %H:%M:%S'))]"/>
</xpath>
</field>
</record>
</odoo>
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