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][MIG] website_require_login: Migration to 17.0 #1019

Merged
merged 9 commits into from
Sep 30, 2024

Conversation

NICO-SOLUTIONS
Copy link
Member

Standard Migration

@NICO-SOLUTIONS NICO-SOLUTIONS marked this pull request as ready for review November 16, 2023 20:28
@NICO-SOLUTIONS NICO-SOLUTIONS mentioned this pull request Nov 16, 2023
13 tasks
@pedrobaeza
Copy link
Member

/ocabot migration website_require_login

1 similar comment
@pedrobaeza
Copy link
Member

/ocabot migration website_require_login

@esafocus
Copy link

I installed and tested the module, it seems to work well apart from this error in the logs, after installation

2022-05-31 10:14:14,119 2368 INFO erp odoo.modules.registry: module website_require_login: creating or updating database tables
2022-05-31 10:14:14,144 2368 WARNING erp py.warnings: /opt/odoo/odoo/odoo/addons/base/models/ir_module.py:170: DeprecationWarning: XML declarations in HTML module descriptions are deprecated since Odoo 17, website_require_login can just have a UTF8 description with not need for a declaration.
File "/usr/lib/python3.11/threading.py", line 995, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.11/socketserver.py", line 691, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python3.11/socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.11/socketserver.py", line 755, in init
self.handle()
File "/opt/odoo/odoo-venv/lib/python3.11/site-packages/werkzeug/serving.py", line 342, in handle
BaseHTTPRequestHandler.handle(self)
File "/usr/lib/python3.11/http/server.py", line 432, in handle
self.handle_one_request()
File "/opt/odoo/odoo-venv/lib/python3.11/site-packages/werkzeug/serving.py", line 374, in handle_one_request
self.run_wsgi()
File "/opt/odoo/odoo-venv/lib/python3.11/site-packages/werkzeug/serving.py", line 319, in run_wsgi
execute(self.server.app)
File "/opt/odoo/odoo-venv/lib/python3.11/site-packages/werkzeug/serving.py", line 308, in execute
application_iter = app(environ, start_response)
File "/opt/odoo/odoo/odoo/http.py", line 2150, in call
response = request._serve_db()
File "/opt/odoo/odoo/odoo/http.py", line 1722, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/opt/odoo/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/opt/odoo/odoo/odoo/http.py", line 1749, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/opt/odoo/odoo/odoo/http.py", line 1953, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/opt/odoo/odoo-custom-addons/apps/website_require_login/models/ir_http.py", line 17, in _dispatch
return super()._dispatch(endpoint)
File "/opt/odoo/odoo/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
response = super()._dispatch(endpoint)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/opt/odoo/odoo/odoo/http.py", line 722, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/opt/odoo/odoo/odoo/addons/web/controllers/dataset.py", line 28, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/odoo/api.py", line 466, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo/odoo/api.py", line 453, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_upgrade
File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 75, in check_and_log
return method(self, *args, **kwargs)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 650, in button_immediate_upgrade
return self._button_immediate_function(type(self).button_upgrade)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 583, in _button_immediate_function
registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "", line 2, in new
File "/opt/odoo/odoo/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/opt/odoo/odoo/odoo/modules/registry.py", line 113, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/opt/odoo/odoo/odoo/modules/loading.py", line 476, in load_modules
processed_modules += load_marked_modules(env, graph,
File "/opt/odoo/odoo/odoo/modules/loading.py", line 364, in load_marked_modules
loaded, processed = load_module_graph(
File "/opt/odoo/odoo/odoo/modules/loading.py", line 222, in load_module_graph
module._check()
File "/opt/odoo/odoo/odoo/addons/website/models/ir_module_module.py", line 478, in _check
super()._check()
File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 832, in _check
if not module.description_html:
File "/opt/odoo/odoo/odoo/fields.py", line 1206, in get
self.compute_value(recs)
File "/opt/odoo/odoo/odoo/fields.py", line 1388, in compute_value
records._compute_field_value(self)
File "/opt/odoo/odoo/odoo/models.py", line 4858, in _compute_field_value
fields.determine(field.compute, self)
File "/opt/odoo/odoo/odoo/fields.py", line 101, in determine
return needle(*args)
File "/opt/odoo/odoo/odoo/addons/base/models/ir_module.py", line 170, in _get_desc
warnings.warn(

@NICO-SOLUTIONS
Copy link
Member Author

NICO-SOLUTIONS commented Jan 11, 2024

This is a warning that the index file has encoding defined which is deprecated for odoo17. This will be fixed by pre commit when the dotfiles are updated.

@SonoDavid
Copy link

Is this branch to be merged or are there still some problems?

@pedrobaeza
Copy link
Member

@SonoDavid
Copy link

Functional review LGTM

@NICO-SOLUTIONS NICO-SOLUTIONS force-pushed the 17.0-mig-website_require_login branch from 5c37526 to 362fdfc Compare May 16, 2024 14:24
Aldeigja and others added 9 commits August 25, 2024 14:41
Currently translated at 100.0% (13 of 13 strings)

Translation: website-14.0/website-14.0-website_require_login
Translate-URL: https://translation.odoo-community.org/projects/website-14-0/website-14-0-website_require_login/it/
[UPD] Update website_require_login.pot

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: website-16.0/website-16.0-website_require_login
Translate-URL: https://translation.odoo-community.org/projects/website-16-0/website-16-0-website_require_login/

[UPD] README.rst
Translated using Weblate (Spanish)

Currently translated at 100.0% (13 of 13 strings)

Translation: website-16.0/website-16.0-website_require_login
Translate-URL: https://translation.odoo-community.org/projects/website-16-0/website-16-0-website_require_login/es/

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: website-16.0/website-16.0-website_require_login
Translate-URL: https://translation.odoo-community.org/projects/website-16-0/website-16-0-website_require_login/
Copy link
Member

@yvaucher yvaucher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Code review

@yvaucher
Copy link
Member

@SonoDavid reviews comment can be done in the files changes tab, it tags your comment as review and ease the count of the reviews to validate PRs.

With your PR we have the 2 necessary reviews, I will merge it now.

@yvaucher
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-1019-by-yvaucher-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 0dc191e into OCA:17.0 Sep 30, 2024
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@NICO-SOLUTIONS
Copy link
Member Author

things are moving forward...
thanks @yvaucher

@NICO-SOLUTIONS NICO-SOLUTIONS deleted the 17.0-mig-website_require_login branch September 30, 2024 14:05
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.

10 participants