Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIG][17.0] kpi #936

Merged
merged 30 commits into from
Nov 30, 2024
Merged

[MIG][17.0] kpi #936

merged 30 commits into from
Nov 30, 2024

Conversation

EdgarRetes
Copy link

@max3903 max3903 added this to the 17.0 milestone Oct 10, 2024
@max3903 max3903 self-assigned this Oct 10, 2024
@EdgarRetes EdgarRetes force-pushed the 17.0-mig-kpi branch 9 times, most recently from 2d852c3 to dca7136 Compare November 26, 2024 21:33
@EdgarRetes
Copy link
Author

@max3903

@max3903
Copy link
Member

max3903 commented Nov 26, 2024

@EdgarRetes I get this error message when creating a threshold:

RPC_ERROR
Odoo Server Error

Traceback (most recent call last):
  File "/opt/odoo/odoo/http.py", line 1782, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/opt/odoo/odoo/service/model.py", line 133, in retrying
    result = func()
  File "/opt/odoo/odoo/http.py", line 1809, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/opt/odoo/odoo/http.py", line 2013, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
  File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 221, in _dispatch
    result = endpoint(**request.params)
  File "/opt/odoo/odoo/http.py", line 757, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/opt/odoo/addons/web/controllers/dataset.py", line 24, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/odoo/api.py", line 468, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo/odoo/api.py", line 453, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/addons/web/models/models.py", line 73, in web_save
    self = self.create(vals)
  File "<decorator-gen-162>", line 2, in create
  File "/opt/odoo/odoo/api.py", line 391, in _model_create_single
    return create(self, arg)
  File "/mnt/data/odoo-addons-dir/kpi/models/kpi_threshold.py", line 65, in create
    for range1 in data["range_ids"][0][2]:
IndexError: list index out of range

@EdgarRetes
Copy link
Author

@EdgarRetes I get this error message when creating a threshold:

RPC_ERROR
Odoo Server Error

Traceback (most recent call last):
  File "/opt/odoo/odoo/http.py", line 1782, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/opt/odoo/odoo/service/model.py", line 133, in retrying
    result = func()
  File "/opt/odoo/odoo/http.py", line 1809, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/opt/odoo/odoo/http.py", line 2013, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
  File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 221, in _dispatch
    result = endpoint(**request.params)
  File "/opt/odoo/odoo/http.py", line 757, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/opt/odoo/addons/web/controllers/dataset.py", line 24, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/odoo/api.py", line 468, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo/odoo/api.py", line 453, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/addons/web/models/models.py", line 73, in web_save
    self = self.create(vals)
  File "<decorator-gen-162>", line 2, in create
  File "/opt/odoo/odoo/api.py", line 391, in _model_create_single
    return create(self, arg)
  File "/mnt/data/odoo-addons-dir/kpi/models/kpi_threshold.py", line 65, in create
    for range1 in data["range_ids"][0][2]:
IndexError: list index out of range

I wasn't able to recreate the error, I didn't have any problems creating a threshold. Can you check again if it works with the last changes?

@EdgarRetes EdgarRetes force-pushed the 17.0-mig-kpi branch 2 times, most recently from b453ff6 to eb07f86 Compare November 27, 2024 16:50
naousse and others added 9 commits November 27, 2024 10:51
Rodrigo Macedo and others added 16 commits November 27, 2024 10:51
Currently translated at 100.0% (68 of 68 strings)

Translation: reporting-engine-12.0/reporting-engine-12.0-kpi
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-kpi/pt_BR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-12.0/reporting-engine-12.0-kpi
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-kpi/
Currently translated at 100.0% (79 of 79 strings)

Translation: reporting-engine-12.0/reporting-engine-12.0-kpi
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-kpi/pt_BR/
Currently translated at 29.1% (23 of 79 strings)

Translation: reporting-engine-13.0/reporting-engine-13.0-kpi
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-kpi/it/
Currently translated at 29.1% (23 of 79 strings)

Translation: reporting-engine-13.0/reporting-engine-13.0-kpi
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-kpi/it/
Currently translated at 29.1% (23 of 79 strings)

Translation: reporting-engine-13.0/reporting-engine-13.0-kpi
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-kpi/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-13.0/reporting-engine-13.0-kpi
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-kpi/
Currently translated at 28.9% (22 of 76 strings)

Translation: reporting-engine-13.0/reporting-engine-13.0-kpi
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-kpi/it/
@EdgarRetes EdgarRetes force-pushed the 17.0-mig-kpi branch 3 times, most recently from 7626aae to 9f128d1 Compare November 27, 2024 19:00
kpi/views/kpi_views.xml Outdated Show resolved Hide resolved
@max3903
Copy link
Member

max3903 commented Nov 30, 2024

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 17.0-ocabot-merge-pr-936-by-max3903-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f8b8819 into OCA:17.0 Nov 30, 2024
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 0387748. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.