onesteinbv / addons-project-nextcloud

1 stars 0 forks source link

Deleting all Odoo events gives error #26

Closed fumanshu007 closed 1 year ago

fumanshu007 commented 1 year ago

Deleting all Odoo events gives error

image

RPC_ERROR Odoo Server Error Traceback (most recent call last): File "/opt/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 237, in _dispatch result = request.dispatch() File "/opt/odoo/odoo-server/odoo/http.py", line 687, in dispatch result = self._call_function(self.params) File "/opt/odoo/odoo-server/odoo/http.py", line 359, in _call_function return checked_call(self.db, *args, *kwargs) File "/opt/odoo/odoo-server/odoo/service/model.py", line 94, in wrapper return f(dbname, args, kwargs) File "/opt/odoo/odoo-server/odoo/http.py", line 348, in checked_call result = self.endpoint(*a, kw) File "/opt/odoo/odoo-server/odoo/http.py", line 916, in call return self.method(*args, *kw) File "/opt/odoo/odoo-server/odoo/http.py", line 535, in response_wrap response = f(args, kw) File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 1346, in call_button action = self._call_kw(model, method, args, kwargs) File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 1334, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/odoo/odoo-server/odoo/api.py", line 464, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/opt/odoo/odoo-server/odoo/api.py", line 451, in _call_kw_multi result = method(recs, *args, **kwargs) File "/opt/odoo/custom/addons/addons-customer-nextcloud/v_nextcloud/models/nextcloud.py", line 227, in delete_all_odoo_events rec.env['nc.sync.user'].search([]).write({'user_events_hash': False}) File "/opt/odoo/custom/addons/addons-customer-nextcloud/nextcloud_odoo_sync/models/nc_sync_user.py", line 123, in write return super(NcSyncUser, self).write(vals) File "/opt/odoo/odoo-server/odoo/models.py", line 3798, in write raise ValueError("Invalid field %r on model %r" % (fname, self._name)) Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/opt/odoo/odoo-server/odoo/http.py", line 643, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/odoo-server/odoo/http.py", line 301, in _handle_exception raise exception.with_traceback(None) from new_cause ValueError: Invalid field 'user_events_hash' on model 'nc.sync.user'

iscale-odoo commented 1 year ago

For v_nextcloud, we've hidden most of the functionality since this module is not intended for production use and simplify the process of adding user

image

fumanshu007 commented 1 year ago

Issue solved