I get the error " Failed to create a lead in Odoo CRM" when I test action on Odoo CRM, I looked in to troubleshoot "ValueError: <class 'NameError'>: "name 'Env' is not defined" while evaluating Console logs:" and it says that I have a bad request 400 required field is missing or a field value wasn't in a recognized format.
I checked the required field which is "opportunity" and the format of the other fields like email and name, but it won't work.
any help please