While upgrading a custom module from odoo v15 to v19, I got the following error:
psycopg2.errors.UndefinedFunction: operator does not exist: character varying ->> unknown
LINE 1: ...Y "res_company"."sequence" , "res_company"."name"->>'en_US'...
^
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
somewhere inside
<record id="party_user_account_move_rule" model="ir.rule">
<field name="name">Party User Rule: All Invoices</field>
<field name="model_id" ref="account.model_account_move"/>
<field name="domain_force">[('move_type', 'in', ('out_invoice', 'out_refund'))]</field>
<field name="groups" eval="[(4, ref('nvis_party.group_party_user')), (4, ref('nvis_party.group_party_supervisor')), (4, ref('nvis_party.group_party_new_supervisor'))]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="False"/>
<field name="perm_unlink" eval="False"/>
</record>
How could I solve this issue?
This returns the following error:
ERROR: invalid input syntax for type json
Token "My" is invalid.
SQL state: 22P02
Detail: Token "My" is invalid.
Context: JSON data, line 1: My...
Note: my company name is "My Company"
What should I do?