OCA / survey

Survey addons
GNU Affero General Public License v3.0
26 stars 110 forks source link

After installing the module, I am unable to go to contacts page. I get Odoo Server Error #30

Closed M65D85 closed 5 years ago

M65D85 commented 5 years ago

Below is the error message I am prompted with. Please note that the module did not install properly. So I had to uninstall it. I am on Odoo CE version 12 hosted on AWS.

Odoo Server Error Traceback (most recent call last): File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 656, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 314, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/tools/pycompat.py", line 87, in reraise raise value File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 698, in dispatch result = self._call_function(self.params) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 346, in _call_function return checked_call(self.db, *args, *kwargs) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/service/model.py", line 97, in wrapper return f(dbname, args, kwargs) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, kw) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 941, in call return self.method(*args, *kw) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 519, in response_wrap response = f(args, kw) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/web/controllers/main.py", line 962, in call_kw return self._call_kw(model, method, args, kwargs) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/web/controllers/main.py", line 954, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/api.py", line 745, in call_kw return _call_kw_model(method, model, args, kwargs) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/api.py", line 718, in _call_kw_model result = method(recs, *args, **kwargs) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 1376, in load_views for [v_id, v_type] in views File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 1376, in for [v_id, v_type] in views File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/mail/models/mail_thread.py", line 410, in fields_view_get res = super(MailThread, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 1462, in fields_view_get xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 1096, in postprocess_and_fields self.raise_view_error(message, view_id) File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 548, in raise_view_error raise ValueError(message) ValueError: Field survey_input_count does not exist

Error context: View res.partner.form [view_id: 113, xml_id: base.view_partner_form, model: res.partner, parent_id: n/a]

pedrobaeza commented 5 years ago

It seems you haven't restarted your Odoo service.

M65D85 commented 5 years ago

okay let me try

M65D85 commented 5 years ago

I restarted the Odoo services by typing this sudo /opt/bitnami/ctlscript.sh restart. But still the error is there

pedrobaeza commented 5 years ago

Please try to reproduce the problem in OCA runbot following the link in the README. I'm pretty sure the problem is in your deployment.

M65D85 commented 5 years ago

Okay, I deployed it using import module on Odoo. After which it gave me this error:

Error while importing module 'partner_survey': 'Error while validating constraint\n\nField survey_input_count does not exist\n\nError context:\nView Partner Form with survey answers\n[view_id: 1704, xml_id: n/a, model: res.partner, parent_id: 113]\nNone\n\n Partner Form with survey answers\n res.partner\n \n \n
\n \n
\n
\n
\n/tmp/tmpx875jhz3/partner_survey/views/res_partner_view.xml\n12'

pedrobaeza commented 5 years ago

Then that's the problem. That option is only valid for data modules, not the rest.

Closing as no valid issue.

M65D85 commented 5 years ago

Oh, my bad. I was under the impression I could import it from there. But would you be so kind enough to tell me what the fix for this is?

pedrobaeza commented 5 years ago

Install it properly putting on addons path in your server.

M65D85 commented 5 years ago

Cool! Thanks!