Skip to content
Snippets Groups Projects
Commit a0d21784 authored by Alexandre Kühn's avatar Alexandre Kühn
Browse files

[FIX] website_livechat: set correct website_visitor col type


The `create_column` in auto_init was set to "BOOLEAN" instead of
"int4". This is a relational field, so "BOOLEAN" prevent setting
any operator other than with id 0 or 1.

closes odoo/odoo#108563

Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
parent 5a6dc9fe
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ class WebsiteVisitor(models.Model):
# Skip the computation of the field `livechat_operator_id` at the module installation
# We can assume no livechat operator attributed to visitor if it was not installed
if not column_exists(self.env.cr, "website_visitor", "livechat_operator_id"):
create_column(self.env.cr, "website_visitor", "livechat_operator_id", "BOOLEAN")
create_column(self.env.cr, "website_visitor", "livechat_operator_id", "int4")
return super()._auto_init()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment