This question has been flagged
1 Reply
2787 Views

Friends,

I have a tree view displaying some file numbers.

File number starts with different sequences..

Can i filter it with a specific sequence(Using Code)..

Thanks...

Avatar
Discard
Best Answer

Hi,

You try this

  <filter string="file numbers" domain="[('file_no','=','your_required_value')]"/>

for example:

<filter string="file numbers" domain="[('file_no','=',25)]"/> means, you will get all the value if file_no=25 only


In xml view you can define a doamin for the following ways:

 staring with "te":

<filter string="Valid" icon="terp-personal" domain="[('name','=like','te%%')]" />

ending with "te" :

<filter string="Valid" icon="terp-personal" domain="[('name','=like','%%te')]" />

contains "te":

<filter string="Valid" icon="terp-personal" domain="[('name','like','te%%')]"

 

Avatar
Discard