콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4169 화면

Hi,

I don't understand how to handle inputs entered in global filter. I understand that we can do the below in xml

  • Search by a field ( by placing the field name inside the search filter record)

    <field name="user_id"/>
    
  • Create Custom Filters

    <filter string="Customers" name="customer" domain="[('customer','=',1)]" help="Customer Partners"/>
    

    In my case i want to get the value entered in that filter area and process it within a python function and return the resultant record which can be displayed in the list (a kind of dynamic record filter)

My Real Case Scenario

My Zip Code contains the below values

  • 60098
  • 60012
  • 75098
  • NG34 0NA
  • NG34 0NB
  • 600AB
  • NG601
  • NG760

I would like to implement a custom search like searching the zip code like this

  • 60000 to 60100 ( should return me 60098, 60012)
  • 60* ( should return me 60098, 60012, 600AB and not NG601, NG760) - i.e starts with 60
  • 60 ( should return me NG601, NG760) - i.e contains 60
  • *60 (should return me only NG760) - i.e contains 60

And Finally if i am able to get the input entered in the global filter in openerp7 i would be able to easily implement this search and return the result. Thanks for your time.

아바타
취소
관련 게시물 답글 화면 활동
1
8월 25
150
0
7월 25
976
1
5월 25
1675
ADD PROPERTIES 해결 완료
1
5월 25
3357
2
3월 25
1552