Skip to Content
Menu
This question has been flagged
4021 Views

XML Code:

<record id="module_category" model="ir.module.category">
<field name="name">Category</field>
<field name="sequence">17</field>
</record>
<record id="group_manager" model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="module_category"/>
<field name="implied_ids" eval="[(4, ref('gpsmap_user'))]"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
<record id="mail_chanel" model="mail.channel">
<field name="name">Channel Name</field>
<field name="group_public_id" eval="[(0, 0, ref('group_manager'))]"/>
<field name="email_send" eval="True"/>
<field name="public">groups</field>
</record>

Error:

File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_alias.py", line 223, in create
)).create(vals)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3415, in create
record = self.browse(self._create(old_vals))
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3508, in _create
cr.execute(query, tuple(u[2] for u in updates if len(u) > 2))
File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 155, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 232, in execute
res = self._obj.execute(query, params)
odoo.tools.convert.ParseError: "column "group_public_id" is of type integer but expression is of type record[]
LINE 1: ...6d2f4b9-60ac-4d0b-86e2-d37a208401fb', 'SolesGPS', ARRAY[(0, ...


Avatar
Discard

Try to give like this <field name="group_public_id" ref="group_manager"/>

This may help.

Related Posts Replies Views Activity
0
Sep 18
2582
0
Nov 24
93
0
Nov 24
130
1
Aug 24
669
0
Jun 24
266