Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
7062 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
mai 17
3518
10
janv. 24
16241
6
déc. 17
9326
1
juil. 23
2028
0
août 17
5115