跳至内容
菜单
此问题已终结
1 回复
7098 查看

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



形象
丢弃
最佳答案

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,

形象
丢弃
相关帖文 回复 查看 活动
1
5月 17
3563
10
1月 24
16271
6
12月 17
9368
1
7月 23
2038
0
8月 17
5133