Post by visiniaga »

Odoo 14
Bryntum gantt chart 1.2.7

after upgrade, it show one time project sucess, but after try again, it show error error index

Error:
Odoo Server Error

Traceback (most recent call last):
File "/opt/odoo/odoo14/odoo/addons/base/models/ir_http.py", line 237, in dispatch
result = request.dispatch()
File "/opt/odoo/odoo14/odoo/http.py", line 684, in dispatch
result = self.
call_function(**self.params)
File "/opt/odoo/odoo14/odoo/http.py", line 360, in call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo14/odoo/service/model.py", line 94, in wrapper
return f(dbname, args, **kwargs)
File "/opt/odoo/odoo14/odoo/http.py", line 348, in checked_call
result = self.endpoint(
a, **kw)
File "/opt/odoo/odoo14/odoo/http.py", line 913, in call
return self.method(args, **kw)
File "/opt/odoo/odoo14/odoo/http.py", line 532, in response_wrap
response = f(
args, **kw)
File "/opt/odoo/odoo14/odoo/addons/web/controllers/main.py", line 1389, in call_kw
return self.
call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo14/odoo/addons/web/controllers/main.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo14/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo14/odoo/api.py", line 379, in _call_kw_multi
ids, args = args[0], args[1:]
Exception

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

Traceback (most recent call last):
File "/opt/odoo/odoo14/odoo/http.py", line 640, in handle_exception
return super(JsonRequest, self).
handle_exception(exception)
File "/opt/odoo/odoo14/odoo/http.py", line 316, in _handle_exception
raise exception.with_traceback(None) from new_cause
IndexError: list index out of range

Attachments
Screenshot 2021-10-29 6.14.44 PM.png
Screenshot 2021-10-29 6.14.44 PM.png (120.02 KiB) Viewed 1505 times

Post by visiniaga »

upgrade from 1.2.5

  • open 1 project view bryntum
  • check with export msproject
  • comeback again it show error list index error

Post by visiniaga »

downgrade to 1.2.5 also dont solve,
pls help

Attachments
Screenshot 2021-10-29 6.30.01 PM.png
Screenshot 2021-10-29 6.30.01 PM.png (123.16 KiB) Viewed 1499 times
Screenshot 2021-10-29 6.29.48 PM.png
Screenshot 2021-10-29 6.29.48 PM.png (116.78 KiB) Viewed 1499 times

Post by Terence »

I can not reproduce this. Which steps are needed to get this error?

Can you try here?
https://odoo-gantt.bryntum.com/


Post by Terence »

Does the error occur on this specific Project?


Post by visiniaga »

it seem upgradeing from 1.2.5 already trigger the bug,
just upgrade from 1.2.5, error is just viewing 1 task also have the problem
and it seem broken data table? as it cannot rollback / downgrade to 1.2.5

pls check screen recording here:
https://drive.google.com/file/d/1Ip7XptGAzNGVHDRV0PiYTLejTbgT-ttF/view?usp=sharing


Post by visiniaga »

It happens in all project, even new project


Post by Terence »

I can not reproduce it, and I can not see from the video what causes the error. Does this occur only with this specific project?


Post by Terence »

To be sure, can you download the latest version from the app store, reinstall and refresh the browser cache?


Post by visiniaga »

it show another error, cannot get in odoo, settings, already show error

Error:
Odoo Server Error

Traceback (most recent call last):
  File "/opt/odoo/odoo14/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/opt/odoo/odoo14/odoo/http.py", line 684, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo14/odoo/http.py", line 360, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo14/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo14/odoo/http.py", line 348, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/odoo14/odoo/http.py", line 913, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo14/odoo/http.py", line 532, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoo14/odoo/addons/web/controllers/main.py", line 1389, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/odoo14/odoo/addons/web/controllers/main.py", line 1381, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/odoo14/odoo/api.py", line 396, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo/odoo14/odoo/api.py", line 383, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/odoo14/odoo/models.py", line 6264, in onchange
    result['value'] = snapshot1.diff(snapshot0, force=first_call)
  File "/opt/odoo/odoo14/odoo/models.py", line 6097, in diff
    result[name] = field.convert_to_onchange(self[name], record, {})
  File "/opt/odoo/odoo14/odoo/fields.py", line 2715, in convert_to_onchange
    return super(Many2one, self).convert_to_onchange(value, record, names)
  File "/opt/odoo/odoo14/odoo/fields.py", line 778, in convert_to_onchange
    return self.convert_to_read(value, record)
  File "/opt/odoo/odoo14/odoo/fields.py", line 2685, in convert_to_read
    return (value.id, value.sudo().display_name)
  File "/opt/odoo/odoo14/odoo/fields.py", line 1019, in __get__
    self.compute_value(recs)
  File "/opt/odoo/odoo14/odoo/fields.py", line 1175, in compute_value
    records._compute_field_value(self)
  File "/opt/odoo/odoo14/odoo/addons/mail/models/mail_thread.py", line 410, in _compute_field_value
    return super()._compute_field_value(field)
  File "/opt/odoo/odoo14/odoo/models.py", line 4063, in _compute_field_value
    getattr(self, field.compute)()
  File "/opt/odoo/odoo14/odoo/models.py", line 1728, in _compute_display_name
    names = dict(self.name_get())
  File "/opt/odoo/odoo14/odoo/models.py", line 1746, in name_get
    result.append((record.id, convert(record[name], record)))
  File "/opt/odoo/odoo14/odoo/models.py", line 5668, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/opt/odoo/odoo14/odoo/fields.py", line 996, in __get__
    recs._fetch_field(self)
  File "/opt/odoo/odoo14/odoo/models.py", line 3071, in _fetch_field
    self._read(fnames)
  File "/opt/odoo/odoo14/odoo/models.py", line 3138, in _read
    cr.execute(query_str, params + [sub_ids])
  File "<decorator-gen-3>", line 2, in execute
  File "/opt/odoo/odoo14/odoo/sql_db.py", line 101, in check
    return f(self, *args, **kwargs)
  File "/opt/odoo/odoo14/odoo/sql_db.py", line 298, in execute
    res = self._obj.execute(query, params)
Exception

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

Traceback (most recent call last):
  File "/opt/odoo/odoo14/odoo/http.py", line 640, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo14/odoo/http.py", line 316, in _handle_exception
    raise exception.with_traceback(None) from new_cause
psycopg2.errors.UndefinedColumn: column project_project.bryntum_auto_scheduling does not exist
LINE 1: ...ct"."project_start_date" as "project_start_date", "project_p...
                                                             ^

Post Reply