Se rendre au contenu
Menu
Cette question a été signalée

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
Ignorer
Publications associées Réponses Vues Activité
3
juil. 24
2069
1
sept. 21
5013
1
déc. 19
4128
1
oct. 23
1732
1
déc. 23
4310