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

[17.0] access_apps #354

Merged
merged 17 commits into from
Dec 18, 2023
Merged

[17.0] access_apps #354

merged 17 commits into from
Dec 18, 2023

Conversation

itpp-bot
Copy link
Contributor

Made by DINAR by request in #352

itpp-bot and others added 16 commits December 18, 2023 09:02
previous commits history: https://github.com/itpp-labs/access-addons/commits/13.0/ir_rule_protected

> Made via .github/workflows/DINAR-PORT.yml
close #260

> Made via .github/workflows/DINAR-PORT.yml
STEPS:
* install access_apps
* uninstall access_apps
* open Apps menu

BEFORE: access error

AFTER: no errors, access rights are restored
STEPS:
* install module_procurement_jit
* install access_apps
* open Settings menus

BEFORE:

```
Odoo Server Error
Traceback (most recent call last):
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 624, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo/custom/src/odoo/odoo/tools/pycompat.py", line 14, in reraise
    raise value
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 669, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 350, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/custom/src/odoo/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 915, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/custom/src/odoo/odoo/http.py", line 515, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/auto/addons/web/controllers/main.py", line 1327, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/auto/addons/web/controllers/main.py", line 1319, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/custom/src/odoo/odoo/api.py", line 387, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo/custom/src/odoo/odoo/api.py", line 374, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/custom/src/odoo/odoo/models.py", line 6240, in onchange
    record[name] = value
  File "/opt/odoo/custom/src/odoo/odoo/models.py", line 5740, in __setitem__
    return self._fields[key].__set__(self, value)
  File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1082, in __set__
    self.write(new_records, value)
  File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 953, in write
    cache_value = self.convert_to_cache(value, records)
  File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 2262, in convert_to_cache
    raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for res.config.settings.module_procurement_jit: 1
```

AFTER: no errors

WHY: since Odoo 13 it has to be string: odoo/odoo@a0e05e2
previous commits history: https://github.com/itpp-labs/access-addons/commits/14.0/access_apps
> Made via .github/workflows/DINAR-PORT.yml
close #336

> Made via .github/workflows/DINAR-PORT.yml
close #345

> Made via .github/workflows/DINAR-PORT.yml
close #352

> Made via .github/workflows/DINAR-PORT.yml
Copy link

Migrator's logs:

09:02:26   INFO        [access_apps] Running migration from 16.0 to 17.0

@yelizariev
Copy link
Collaborator

r+

@itpp-bot itpp-bot merged commit 24425e1 into 17.0 Dec 18, 2023
2 of 3 checks passed
@itpp-bot
Copy link
Contributor Author

Approved by @yelizariev

sent by 👷‍♂️ Merge Bot

@yelizariev yelizariev deleted the 17.0-access_apps branch December 18, 2023 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants