Skip to Content
Menu
This question has been flagged

I've connected odoo with zapier and I'm able to execute events on lead creation. 

The issue I have is to execute events when creating a record.

When It comes to setting up a trigger, I'm able to select database, but when I try to select the model, following error comes.


We’re having trouble loading 'Module' data (Fault (code relation "account_invoice_report" does not exist LINE 1: SELECT COUNT(*) FROM "account_invoice_report" ^ ) occurred. Message: Traceback (most recent call last): File "/opt/odoo/odoo/api.py", line 790, in get return field_cache[record._ids[0]] KeyError: 2 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo/odoo/fields.py", line 970, in __get__ value = env.cache.get(record, self) File "/opt/odoo/odoo/api.py", line 793, in get raise CacheMiss(record, field) odoo.exceptions.CacheMiss: 'ir.model(2,).count' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo/odoo/addons/base/controllers/rpc.py", line 79, in xmlrpc_1 response = self._xmlrpc(service) File "/opt/odoo/odoo/addons/base/controllers/rpc.py", line 68, in _xmlrpc result = dispatch_rpc(service, method, params) File "/opt/odoo/odoo/http.py", line 141, in dispatch_rpc result = dispatch(method, params) File "/opt/odoo/odoo/service/model.py", line 41, in dispatch res = fn(db, uid, *params) File "/opt/odoo/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/opt/odoo/odoo/service/model.py", line 175, in execute res = execute_cr(cr, uid, obj, method, *args, **kw) File "/opt/odoo/odoo/service/model.py", line 159, in execute_cr result = odoo.api.call_kw(recs, method, args, kw) File "/opt/odoo/odoo/api.py", line 396, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/opt/odoo/odoo/api.py", line 383, in _call_kw_multi result = method(recs, *args, **kwargs) File "/opt/odoo/odoo/models.py", line 3022, in read return self._read_format(fnames=fields, load=load) File "/opt/odoo/odoo/models.py", line 3042, in _read_format vals[name] = convert(record[name], record, use_name_get) File "/opt/odoo/odoo/models.py", line 5668, in __getitem__ return self._fields[key].__get__(self, type(self)) File "/opt/odoo/odoo/fields.py", line 1019, in __get__ self.compute_value(recs) File "/opt/odoo/odoo/fields.py", line 1175, in compute_value records._compute_field_value(self) File "/opt/odoo/odoo/models.py", line 4063, in _compute_field_value getattr(self, field.compute)() File "/opt/odoo/odoo/addons/base/models/ir_model.py", line 205, in _compute_count cr.execute(sql.SQL('SELECT COUNT(*) FROM {}').format(sql.Identifier(records._table))) File "", line 2, in execute File "/opt/odoo/odoo/sql_db.py", line 101, in check return f(self, *args, **kwargs) File "/opt/odoo/odoo/sql_db.py", line 298, in execute res = self._obj.execute(query, params) psycopg2.errors.UndefinedTable: relation "account_invoice_report" does not exist LINE 1: SELECT COUNT(*) FROM "account_invoice_report" ^ )


There are a bunch of customization in the instance but the error seems to be coming from odoo addons.


I'd really appreciate it if anyone can help with this issue or have any advice regarding this.


Thanks.

Avatar
Discard

Hi, 


I have the same issue.

Did you find a solution please ?

Thanks

Author

Philippe CHIZALLET Sorry, apparently their integration only supports upto v9.

Related Posts Replies Views Activity
2
Sep 22
4091
2
May 22
2812
2
Dec 21
2119
0
Sep 21
1599
0
Jun 21
4