Skip to Content
Menu
This question has been flagged

Hi 

I want to be able to filter the product_name from product.supplierinfo in my product.template table view.

How can I do that ?

I tried with adding a filter like this

<field name="seller_ids" string="TESTTESTTEST" filter_domain="[('seller_ids.product_name', '=', 'seller_ids.product_name')]"/>

but this isn't working.

Any ideas?


Thank you



Avatar
Discard
Best Answer

Hi,

You can add filter by inherit view of product template search view

<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
    	 <record id="product_template_search_view_inherit" model="ir.ui.view">
            <field name="name">product.template.search.inherit</field>
            <field name="model">product.template</field>
            <field name="inherit_id" ref="product.product_template_search_view" />
            <field name="arch" type="xml">
            <xpath expr="//filter[@name='inactive']" position="after">
	              <filter string="Vendor Product Name" name="vendor_product_name" domain="[('seller_ids.product_name','!=',False)]"/>
             </xpath>
            </field>
        </record>
    </data>
</odoo>

Thanks,

Avatar
Discard
Related Posts Replies Views Activity
1
May 17
3153
10
Jan 24
15663
6
Dec 17
8736
1
Jul 23
1734
0
Aug 17
4727