Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
11677 มุมมอง

Hi Friends ,

[ From Technical document ] select:Default value for the select attribute in the view. 1 means basic search, and 2 means advanced search.

  1. I like to know , where we can find basic search ?

  2. Is it possible to make use select= ( 1 or 2) for both XML files and <objectname>.py files ?

  3. I like to know the property of select - optional parameter .

Friends please explain me . And once again thank everyone .

Thanks & Regards OMPRAKASH.A

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

"1" & "2" were used in v5.0: before the search views existed, the tree views had search filters on the "select=1" fields, and additional others hidden behind an "extended search" button (the "select=2" fields).

Looks like the docs are outdated.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Now select can be False(default) and True.

In OpenERP v6.x:

  • If you define in ORM (*.py) select=True, then create index in DB for search optimization and insert in default search view.

  • If you define in XML select=True, then field insert in default search view.

In OpenERP v7.x:

  • If you define in ORM (*.py) select=True, then create index in DB for search optimization.

  • If you define in XML select=True, then no effect.

อวตาร
ละทิ้ง
ผู้เขียน

Hi wowas , Thanks for reply .. I like to know where we can find basic search ? Both select 1 & 2 hold same property ?

Because 1 & 2 it's True then behavior will the same. In this context, I think, basic search mean search without optimization (without create index in DB).

ผู้เขียน

Hi wowas , thank for your reply...

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 18
9643
optional parameter fields/property แก้ไขแล้ว
1
มิ.ย. 15
5938
2
มี.ค. 15
9720
2
ต.ค. 24
1400
2
เม.ย. 23
18395