Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata

Using Odoo Studio, I added a custom Text field titled 'Formal Name' in the Product Unit of Measure's List View, The List view also displays the UOM Category. The custom field's id is x_studio_formal_name .

When selecting a unit of measure, I want the search to also work if I type the 'Formal Name' or the UOM Category.  For example, to assign a Unit of Measure to a Product, when I click the 'search more' option within the search list (which pops up while selecting a UOM), both the above mentioned fields are visible. However, the search does not work when I type the Formal Name or the UOM Category in the search box.

After enabling Odoo developer, I went to the 'Edit SearchView' option, where I found the below code under the standard view.

<search string="Search UOM">
                <field name="name"/>
                <separator/>
                <filter string="Archived" name="inactive" domain="[('active', '=', False)]"/>
                <group string="Group By">
                  <filter string="Category" name="group_by_category" context="{'group_by': 'category_id'}"/>
                </group>
            </search>

Now, what do I put in the inherited view and how do I add it, to make the search work for the 'Formal Name' and the UOM Category, under both: (1) the initial search list which only displays the UOM name and, (2) the full list that appears when I click the 'search more' option?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
lug 24
2436
1
set 21
5312
1
dic 19
4388
1
ott 23
2071
1
dic 23
4588