Create Lead fails with KeyError: ‘is_company’
-
Hi there
First many thanks for this miraculous plugin to sync forms to an API.
We have an internal only website where we have a Contacts Form 7 form which we want to create leads in our Odoo CRM. The connection works, I created a new form via the template (small typo there on the tab odoo -> Add Bridge “use tempalte”) but unfortunately it throws an error on odoo:
2025-04-22 13:04:24,766 27744 ERROR myinstance odoo.http: Exception during request handling.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/models.py", line 6049, in _update_cache
field_values = [(fields[name], value) for name, value in values.items() if name != 'id']
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/models.py", line 6049, in <listcomp>
field_values = [(fields[name], value) for name, value in values.items() if name != 'id']
~~~~~~^^^^^^
KeyError: 'is_company'and further down:
[...]
File "/usr/lib/python3/dist-packages/odoo/models.py", line 6497, in new
record._update_cache(values, validate=False)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 6051, in _update_cache
raise ValueError("Invalid field %r on model %r" % (e.args[0], self._name))
ValueError: Invalid field 'is_company' on model 'crm.lead'On the other hand I can successfully create a new contact with a different form (from the template) so it must be a problem with the view when creating a new lead.
The problem appears on all three templates for Lead creation.
Many thanks for a hint on how to fix this, I’ll be happy to provide more information.
-dan
The page I need help with: [log in to see the link]
The topic ‘Create Lead fails with KeyError: ‘is_company’’ is closed to new replies.