Skip to Content
Menu
This question has been flagged
1 Reply
1495 Views
Hello all, I'm preparing a custom module that has a many2many field, but I'd like to customize some details in it when it comes up for search, and I'm not getting it.

Below is my xml

<record model="ir.ui.view" id="print_services_sheet_finish_search">
<field name="name">print.services.sheet.finish.search</field>
<field name="model">print.services.sheet.finish</field>
<field name="arch" type="xml">
<search >

<field name="finishing"/>
<field name="sides"/>

</search>

</field>
</record> And here is the image of the place I want to customize, this table ..


Where am I going wrong?
Avatar
Discard
Author Best Answer

it really simple :/.

to change this you need a <tree> so the code go just as

<record model="ir.ui.view" id="print_services_sheet_finish_search">
<field name="name">print.services.sheet.finish.search</field>
<field name="model">print.services.sheet.finish</field>
<field name="arch" type="xml">
<tree
>

<field name="finishing"/>
<field name="sides"/>

</tree>

</field>
</record>
Avatar
Discard