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

Hi ,I am working in POS in Odoo 10 .But the issue is i am not that much experience in javascript so i need help .

I have a many2many field in Product template .Now i want to enable the search for products in  POS .

Can somebody help me to do this ?


形象
丢弃
最佳答案

Hi

To enable the search you can define (or add in the existent) search view like that in your xml :


<record id="view_YourModelName_search" model="ir.ui.view">
        <field name="name">YourModelName.search</field>
        <field name="model">YourModel</field>
        <field name="arch" type="xml">
           <search string="Sprints">
                <field name="product"/>           
            </search>
        </field>
    </record>

I hope this help !


形象
丢弃

This will not work in the POS (JavaScript UI).

编写者

@Taher Yes you are right ...I need javascript logic not the XML .

@Celia But anyway thanks a lot for showing the interest in my problem .

相关帖文 回复 查看 活动
1
8月 25
866
1
7月 25
1098
3
7月 25
3762
3
5月 25
1985
1
7月 25
1285