← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 691532] Re: CRM After-Sale Services make field Searchable not working 5.0.15

 

Hello Tanel,

Please ignore the comment #3. Stable is working in a different way for
the search panel.

Stable works in a way that search panel will be considered for those view which has the highest priority.
If you want to add your field over there, you will need to make your view as the highest priority to load.

If you making a "partner_phone" search-able please follow this steps.
1.Going on ""After sale service"-> "Bug Tracking"  press ctrl+l (Going up to menu which you want).
2.Click on the "Open a resource" Button. You can see the three view on there (Tree, Calender, Form).
3.Open the Tree view and then again press a "Open a resource" button.
4.Now you can see the Whole tree view code. Set the priority to 0. And hear you can add your field with select="1" like <field name="partner_phone" select="1"/> . Now reload the client and you can see those field in your search view.

I have attached a screen-shot  for your reference.

Thanks.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/691532

Title:
  CRM After-Sale Services make field Searchable not working 5.0.15

Status in OpenObject Addons Modules:
  Invalid

Bug description:
  OPENERP 5.0.15
Ubuntu 10.04

Easiest way reproduce bug is use openerp-web and try add new field in "CRM & SRM" -> "After-Sale Services" -> "Bug Tracking" tree and make it searchable (use [CUSTOMIZE]). Something is linked wrong i think.

TEST1

Lets add "partner phone" in "CRM & SRM" -> "After-Sale Services" -> "Bug Tracking" tree view and make that SEARCHABLE.
code:

<!-- test not working WHY -->
<data>
<record id="ir_ui_view_crmcaseinherit_2" model="ir.ui.view">
<field name="inherit_id" ref="crm_configuration.crm_case_tree_view" />
<field name="name" >crm.case.3135.inherit</field>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="partner_phone" select="1"/>
</field>
</field>
<field name="priority" eval="16" />
<field name="model" >crm.case</field>
<field name="type" >tree</field>
</record>
</data>

"Phone" jumps up in view but not searchable!!!! Why? There is select="1" or not?
Ma by i dumb? Lets find out...

TEST2
Lets add some fields in in "Human Resources" -> "Employees" -> "All Employees" tree view and make some of them SEARCHABLE.
code:
<!-- Employee tree view WORKING PERFECTLY -->
<data>
<record id="ir_ui_view_hremployeeinherit_0" model="ir.ui.view">
<field name="inherit_id" ref="hr.view_partner_tree2"/>
<field name="name" >hr.employee.56161.inherit</field>
<field name="model" >hr.employee</field>
<field name="type" >tree</field>
<field name="priority" eval="16" />
<field name="arch" type="xml">
<field name="name" position="after">
<field name="work_phone" select="1"/>
<field name="x_work_mobil" select="2"/>
<field name="work_email"/>
<field name="category_id"/>
<field name="x_privat_mobil"/>
<field name="birthday"/>
</field>
</field>
</record>
</data>

And here all working like charm!!! I see new fields and they are chearchable. So please point me where is fault? Im blind.

How i get Searchable working in first case?

Thank you.





References