muk-it / muk_web

MuK Odoo Web Modules
GNU Lesser General Public License v3.0
109 stars 231 forks source link

muk_web_searchpanel help #154

Closed mileo closed 4 years ago

mileo commented 4 years ago

Hi Guys,

I'm trying to use muk_web_searchpanel at project kanban:

{
    'name': 'Muk Project Searchpanel',
    'description': """
        Project WebSearch Panel""",
    'version': '12.0.1.0.0',
    'license': 'AGPL-3',
    'depends': [
        'muk_web_searchpanel',
        'project',
    ],
    'data': [
        'views/project_task_view.xml',
    ],
}
        <record id="project_task_muk_filter" model="ir.ui.view">
            <field name="name">project.task.search in muk</field>
            <field name="model">project.task</field>
            <field name="inherit_id" ref="project.view_task_search_form"/>
            <field name="arch" type="xml">
                <xpath expr="//group" position="after">
                        <searchpanel>
                          <field name="project_id" select="multi" />
                        </searchpanel>
                </xpath>
            </field>
        </record>

However I am not able to use the module. Am I doing something wrong?

Thanks in advance

mileo commented 4 years ago
        <record id="project_task_muk_filter" model="ir.ui.view">
            <field name="name">project.task.search in muk</field>
            <field name="model">project.task</field>
            <field name="inherit_id" ref="project.view_task_kanban"/>
            <field name="arch" type="xml">
                <xpath expr="//templates">
                        <searchpanel>
                          <field name="project_id" select="multi" />
                        </searchpanel>
                </xpath>
            </field>
        </record>

Changes must be done at kanban view not filter.