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

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 ?


Avatar
Abbandona
Risposta migliore

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 !


Avatar
Abbandona

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

Autore

@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 .

Post correlati Risposte Visualizzazioni Attività
1
ago 25
863
1
lug 25
1094
3
lug 25
3736
3
mag 25
1972
1
lug 25
1283