Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
7068 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
mag 17
3529
10
gen 24
16248
6
dic 17
9337
1
lug 23
2031
0
ago 17
5115