Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
13225 Visualizações

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 ?

Avatar
Cancelar
Melhor resposta

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.

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
ago. 25
2318
1
jul. 25
839
1
ago. 25
1150
0
mai. 25
1290
2
abr. 25
3497