Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
13246 Vizualizări

i have row like below Structure:

Product  UOM    Barcode_one Barcode_Two Barcode_three Barcode_four

Orange   unit      123                   456                   789                    457

Orange   dozen                            378

Orange   pack      222        

when i search the barcode  with  barcode like   378  it will display only one row ..

Orange dozen                          378

i want to display all the 3 rows .. with any barcode ..

<record id="view_product_pricelist_item_filter" model="ir.ui.view">     

   <field name="name">product.pricelist.item.select</field>     

   <field name="model">product.pricelist.item</field>   

    <field name="arch" type="xml">          

  <search string="Search Product by Barcode

<field name="name" string="Barcode"        

        filter_domain= "['|','|','|',                 ('barcode_one','ilike',self),          

        ('barcode_two','ilike',self),           

        ('barcode_three', 'ilike', self),          

        ('barcode_four', 'ilike', self),                                  ]"/>         

</search>       

</field>  

  </record>

How to resolve it ?

Imagine profil
Abandonează
Cel mai bun răspuns

Perhaps you could try achieving it in py-code, with the help of ORM Methods like name_search or search, depending on your desired result.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
aug. 25
2366
1
iul. 25
880
1
aug. 25
1151
0
mai 25
1329
2
apr. 25
3536