helpdesk icon indicating copy to clipboard operation
helpdesk copied to clipboard

Error installing helpdesk modules in Odoo 18 community

Open jesusbionet opened this issue 8 months ago • 1 comments

Module

helpdesk_mgmt

Describe the bug

When I try to install helpdesk module in odoo comunity, we are experiencing some issues to install it

To Reproduce

odoo v18

Steps to reproduce the behavior:

  1. Install module

Expected behavior Install sucessfully module

Invalid Operation

Error while importing module 'helpdesk_mgmt'.

 while parsing /tmp/tmpwhtcnxhl/helpdesk_mgmt/data/helpdesk_data.xml:12, somewhere inside
<record id="assignment_email_template" model="mail.template">
            <field name="name">Ticket Assignment</field>
            <field name="model_id" ref="model_helpdesk_ticket"/>
            <field name="email_from">{{object.company_id.partner_id.email}}</field>
            <field name="email_cc">{{not object.partner_id and object.partner_email or ''}},</field>
            <field name="subject">{{object.company_id.name}} Ticket Assignment (Ref {{object.number or 'n/a' }})</field>
            <field name="partner_to">{{object.partner_id.id}}</field>
            <field name="auto_delete" eval="False"/>
            <field name="lang">{{object.partner_id.lang}}</field>
            <field name="body_html" type="html">
                <p>Hello <t t-out="object.user_id.name"/>,</p>
                <p>The ticket <t t-out="object.number"/> has been assigned to you.</p>
            </field>
        </record> 

jesusbionet avatar Apr 03 '25 18:04 jesusbionet

A similar error occur other modules

 while parsing /tmp/tmp8e1nd958/odoo_website_helpdesk/security/odoo_website_helpdesk_security.xml:5, somewhere inside
<record id="help_desk_dashboard_team_leader" model="ir.rule">
        <field name="name">Record Rule for team leader</field>
        <field name="model_id" ref="model_ticket_helpdesk"/>
        <field name="groups" eval="[(4, ref('odoo_website_helpdesk.helpdesk_team_leader'))]"/>
        <field name="domain_force">['&amp;', ('team_head_id.id', '=', user.id), ('stage_id.group_ids.users', 'in',
            user.id)]
        </field>
        <field name="perm_read" eval="True"/>
        <field name="perm_write" eval="True"/>
        <field name="perm_create" eval="True"/>
        <field name="perm_unlink" eval="True"/>
    </record> 
Invalid Operation

Error while importing module 'odoo_website_helpdesk'.

 while parsing /tmp/tmpwk5h0nxj/odoo_website_helpdesk/security/odoo_website_helpdesk_security.xml:5, somewhere inside
<record id="help_desk_dashboard_team_leader" model="ir.rule">
        <field name="name">Record Rule for team leader</field>
        <field name="model_id" ref="model_ticket_helpdesk"/>
        <field name="groups" eval="[(4, ref('odoo_website_helpdesk.helpdesk_team_leader'))]"/>
        <field name="domain_force">['&amp;', ('team_head_id.id', '=', user.id), ('stage_id.group_ids.users', 'in',
            user.id)]
        </field>
        <field name="perm_read" eval="True"/>
        <field name="perm_write" eval="True"/>
        <field name="perm_create" eval="True"/>
        <field name="perm_unlink" eval="True"/>
    </record> 

jesusbionet avatar Apr 03 '25 18:04 jesusbionet

Encountered same issue here. Happens with module downloaded from https://apps.odoo.com/apps/modules/18.0/helpdesk_mgmt Odoo version 18.0-20250218 (Versión Community)

ertomas avatar Apr 14 '25 15:04 ertomas

Hello,

you can test helpdesk_mgmt installation in runboat, and it works. Please note that runboat usually comes with an up-to-date Odoo version, and helpdesk_mgmt itself was released two weeks ago.

Not sure, but your problem could be trying this addon installation in an older Odoo version within 18.0, then you can try upgrading Odoo before installing it and bring us your feedback.

dalonsod avatar Apr 14 '25 16:04 dalonsod

Updated to Odoo 18.0-20250401 and issue still persists.

ertomas avatar Apr 14 '25 17:04 ertomas

Installed by directly unzipping files in addon directory inside Odoo installation and it worked.

ertomas avatar Apr 14 '25 19:04 ertomas

In my case, I deployed modules in addons directory and it doesn't work.

Appear on the app menu but it's not installable

Image

jesusbionet avatar Apr 14 '25 21:04 jesusbionet

I'm using Odoo 18.1alpha1 (Versión Community) version

jesusbionet avatar Apr 14 '25 21:04 jesusbionet

Your version is a middle one that is not valid for the module version. You have to use 18, not 18.1 (and alpha denotes a non stable version).

pedrobaeza avatar Apr 14 '25 21:04 pedrobaeza

I see the logs

2025-04-03 15:00:14,805 1690 WARNING ? odoo.modules.module: The module helpdesk_mgmt has an incompatible version, setting installable=False 
2025-04-03 15:00:14,851 1690 WARNING ? odoo.modules.module: The module odoo_website_helpdesk has an incompatible version, setting installable=False 

jesusbionet avatar Apr 14 '25 22:04 jesusbionet