+
Skip to content

Conversation

lembregtse
Copy link
Contributor

No description provided.

sebalix and others added 30 commits September 24, 2025 13:31
…itlog.log' model (standard 'create_date' field is used instead)
…ail data - if any - are migrated during the installation)
… 'field_description' fields changed into related fields
mymage and others added 22 commits September 24, 2025 13:31
Currently translated at 100.0% (87 of 87 strings)

Translation: server-tools-17.0/server-tools-17.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-auditlog/it/
Currently translated at 100.0% (87 of 87 strings)

Translation: server-tools-17.0/server-tools-17.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-auditlog/es/
Currently translated at 100.0% (87 of 87 strings)

Translation: server-tools-17.0/server-tools-17.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-auditlog/sv/
Currently translated at 100.0% (87 of 87 strings)

Translation: server-tools-17.0/server-tools-17.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-auditlog/zh_CN/
Currently translated at 100.0% (87 of 87 strings)

Translation: server-tools-17.0/server-tools-17.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-auditlog/es_AR/
When a new auditlog rule is added / modified / deleted, all workers
need to be notified of the change. This is done through registry
signaling. The previous code was not using the proper level of signaling
resulting in workers not being aware of the changes and not implementing
the correct auditlog rules, because they had only invalidated their
cache and not reloaded the registry.

We fix this by using the same signaling as implemented in
`base_automation` which sets the the registry_invalidated field of
env.registry to True to cause a full registry reload.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-auditlog/
Currently translated at 97.7% (85 of 87 strings)

Translation: server-tools-18.0/server-tools-18.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-auditlog/tr/
[IMP] auditlog: Add name to action for UX
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-auditlog/
Currently translated at 100.0% (91 of 91 strings)

Translation: server-tools-18.0/server-tools-18.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-auditlog/it/
@rven
Copy link
Contributor

rven commented Sep 25, 2025

@legalsylvain It seems that the CI pipelines need to include the --with-demo option.
Odoo doesn't install demo by default anymore.

vals = {
"name": httprequest.path,
"root_url": httprequest.url_root,
"user_id": request.uid,
Copy link

Choose a reason for hiding this comment

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

This will trigger a warning: DeprecationWarning: Since 19.0, use request.env.uid directly
There may be more instances of this, I did not check.

"root_url": httprequest.url_root,
"user_id": request.uid,
"http_session_id": http_session_model.current_http_session(),
"user_context": request.context,
Copy link

Choose a reason for hiding this comment

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

This will trigger a warning: DeprecationWarning: Since 19.0, use request.env.context directly
There may be more instances of this, I did not check.
For request, this also applies to request.cr -> request.env.cr

Copy link
Contributor

Choose a reason for hiding this comment

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

Fixed + added some test scenario's

@rven rven force-pushed the 19.0-mig-auditlog branch from 715e3aa to 628c510 Compare October 9, 2025 13:22
@rven rven force-pushed the 19.0-mig-auditlog branch from 628c510 to acf373c Compare October 9, 2025 13:24
@rven
Copy link
Contributor

rven commented Oct 9, 2025

@legalsylvain It seems that the CI pipelines need to include the --with-demo option. Odoo doesn't install demo by default anymore.

Fixed!

@rven rven mentioned this pull request Oct 9, 2025
38 tasks
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.

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载