Skip to Content
Menu
This question has been flagged
1 Reply
1771 Views
Odoo Server Error
Traceback (most recent call last):
  File "/opt/odoo/odoo/odoo/http.py", line 656, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo/odoo/http.py", line 314, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo/odoo/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/odoo/odoo/odoo/http.py", line 698, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo/odoo/http.py", line 346, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/service/model.py", line 98, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo/odoo/http.py", line 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/odoo/odoo/http.py", line 941, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo/odoo/http.py", line 519, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 962, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/odoo/odoo/api.py", line 757, in call_kw
    return _call_kw_model_create(method, model, args, kwargs)
  File "/opt/odoo/odoo/odoo/api.py", line 737, in _call_kw_model_create
    result = method(recs, *args, **kwargs)
  File "<decorator-gen-136>", line 2, in create
  File "/opt/odoo/odoo/odoo/api.py", line 440, in _model_create_single
    return create(self, arg)
  File "/opt/odoo/odoo/addons/digest/models/res_users.py", line 12, in create
    user = super(ResUsers, self).create(vals)
  File "<decorator-gen-131>", line 2, in create
  File "/opt/odoo/odoo/odoo/api.py", line 440, in _model_create_single
    return create(self, arg)
  File "/opt/odoo/odoo/addons/note/models/res_users.py", line 20, in create
    user._create_note_stages()
  File "/opt/odoo/odoo/addons/note/models/res_users.py", line 46, in _create_note_stages
    stage.sudo().copy(default={'user_id': user.id})
  File "/opt/odoo/odoo/odoo/models.py", line 4322, in copy
    self.with_context(from_copy_translation=True).copy_translations(new, excluded=default or ())
  File "/opt/odoo/odoo/odoo/models.py", line 4304, in copy_translations
    Translation._upsert_translations(vals_list)
AttributeError: 'ir.translation' object has no attribute '_upsert_translations'
Avatar
Discard
Best Answer

For some reason "_upsert_translations" method is missing from the "ir.translation" object.

Please take the latest pull or copy of v12 and try it again.

Avatar
Discard