Commit Graph

183 Commits (cac9a3a68c7182ee9f58e2612846d75fbb47818f)

Author SHA1 Message Date
OCA-git-bot c706e9b739 [BOT] post-merge updates 2024-12-27 19:10:22 +00:00
Eric Lembregts 5a50d39245 [FIX] auditlog: adapt exclude fields test to #3137
In #3137 it is prevented to create auditlogs without log lines.

In this particular test, it is tested that no log line is created for excluded
fields. We would expect therefore that no auditlog is created after #3137, but
depending on the setup, an log line may be created for field phone_sanitized
which is not an excluded field in the test.

To fix this, the test is adapted to write another, non excluded field so that
the auditlog is created in any case.
2024-12-27 10:30:39 +01:00
OCA-git-bot 0bf5429cf8 [BOT] post-merge updates 2024-12-13 11:58:25 +00:00
OCA-git-bot b906f8e6be Merge PR #3137 into 17.0
Signed-off-by StefanRijnhart
2024-12-13 11:53:57 +00:00
OCA-git-bot 115970a26c [BOT] post-merge updates 2024-12-12 20:45:15 +00:00
Holger Brunn 932a623c30 [FIX] auditlog: patch away all write overrides in res.groups for test 2024-12-12 18:32:28 +01:00
Raf Ven 23bb199663 [FIX] auditlog: Dismiss logging when not needed. 2024-12-05 12:59:50 +01:00
OCA-git-bot b26d775d2f [BOT] post-merge updates 2024-10-23 07:15:02 +00:00
Alexandre Fayolle 5d2afc0325 fixup! [FIX] auditlog: registry propagation 2024-10-22 08:53:29 +02:00
Alexandre Fayolle 56d1a1e475 [FIX] auditlog: registry propagation
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.
2024-10-22 08:33:56 +02:00
Ignacio Buioli 4060a1898e Translated using Weblate (Spanish (Argentina))
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/
2024-09-17 02:06:28 +00:00
xtanuiha 24f05e6580 Translated using Weblate (Chinese (Simplified) (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/zh_CN/
2024-06-16 11:08:02 +00:00
jakobkrabbe 8c69a20939 Translated using Weblate (Swedish)
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/
2024-06-12 11:45:13 +00:00
Ivorra78 c1d9f618af Translated using Weblate (Spanish)
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/
2024-04-23 08:40:21 +00:00
mymage 885d0194a9 Translated using Weblate (Italian)
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/
2024-04-17 14:35:04 +00:00
Weblate d0b61ab0cc Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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/
2024-04-12 11:03:55 +00:00
OCA-git-bot 8a35da005b [BOT] post-merge updates 2024-04-12 11:00:39 +00:00
oca-ci a8cd34153e [UPD] Update auditlog.pot 2024-04-12 10:58:26 +00:00
Raf Ven dcab07e824 [MIG] auditlog: Migration to 17.0 2024-02-19 08:20:02 +01:00
Raf Ven e5c22848ff [IMP] auditlog: pre-commit stuff 2024-02-19 08:20:02 +01:00
BT-anieto 12281f79c9 [16.0][FIX] auditlog: Add/Remove User Group
When adding/removing a group in a user (and tracking a user or a partner), odoo sends a 'reified' val 'in_group_{group_id}'. We must convert this value into the real groups_id one.
2024-02-19 08:20:02 +01:00
Stefan Rijnhart 1eb44b8845 [FIX] auditlog: prevent removal of x2many values from inaccessible companies
Having a product.template with taxes from multiple companies assigned, let a
user without all of these companies enabled set the taxes of that product.

Before this change, the taxes related to inaccessible companies will be
inadvertently removed.

Co-authored-by: Raf Ven <raf.ven@dynapps.be>
2024-02-05 08:36:29 +01:00
mymage 21b4cf759e Translated using Weblate (Italian)
Currently translated at 36.3% (32 of 88 strings)

Translation: server-tools-16.0/server-tools-16.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auditlog/it/
2023-11-14 15:19:45 +01:00
Weblate 31dc8e2b56 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-16.0/server-tools-16.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auditlog/
2023-11-14 15:19:45 +01:00
OCA-git-bot adac00a2d8 [UPD] README.rst 2023-11-14 15:19:45 +01:00
OCA-git-bot ebacf7de5a auditlog 16.0.2.0.2 2023-11-14 15:19:45 +01:00
SilvioC2C 448cfe42a0 FIX: auditlog consistency with Many2one fields
Odoo allows creating or updating records with values like ``{"many2one_field_id": empty.recordset()}``,
but this crashes when using ``deepcopy``, which fails in recreating the ``api.Environment`` object
attached to the recordset.
This commit should fix the issue by updating the values before passing them to ``deepcopy``.
2023-11-14 15:19:45 +01:00
OCA-git-bot b4f8eb972c [UPD] README.rst 2023-11-14 15:19:45 +01:00
Ivorra78 f8a65b0ad8 Translated using Weblate (Spanish)
Currently translated at 100.0% (88 of 88 strings)

Translation: server-tools-16.0/server-tools-16.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auditlog/es/
2023-11-14 15:19:45 +01:00
mymage ccac7a9dd2 Translated using Weblate (Italian)
Currently translated at 36.3% (32 of 88 strings)

Translation: server-tools-16.0/server-tools-16.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auditlog/it/
2023-11-14 15:19:45 +01:00
Matjaz Mozetic 93026bf6a3 Translated using Weblate (Slovenian)
Currently translated at 78.4% (69 of 88 strings)

Translation: server-tools-16.0/server-tools-16.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auditlog/sl/
2023-11-14 15:19:45 +01:00
mymage 3883f7b957 Translated using Weblate (Italian)
Currently translated at 36.3% (32 of 88 strings)

Translation: server-tools-16.0/server-tools-16.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auditlog/it/
2023-11-14 15:19:45 +01:00
OCA-git-bot 4450fe4d3b auditlog 16.0.2.0.1 2023-11-14 15:19:45 +01:00
OCA-git-bot 4581f780c3 [UPD] README.rst 2023-11-14 15:19:45 +01:00
Holger Brunn a8ed8132fd [FIX] auditlog: Allow passing a chunk size for autovacuum 2023-11-14 15:19:45 +01:00
Ignacio Buioli 15b4e05540 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (88 of 88 strings)

Translation: server-tools-16.0/server-tools-16.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auditlog/es_AR/
2023-11-14 15:19:45 +01:00
Weblate aeb68fa569 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-16.0/server-tools-16.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auditlog/
2023-11-14 15:19:45 +01:00
OCA-git-bot 914b409434 auditlog 16.0.2.0.0 2023-11-14 15:19:45 +01:00
oca-ci 7d910fd15a [UPD] Update auditlog.pot 2023-11-14 15:19:45 +01:00
Enric Tobella 41178c6970 [IMP] auditlog: make the line views using a non auto model 2023-11-14 15:19:45 +01:00
Ignacio Buioli 7bda32d6dc Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (86 of 86 strings)

Translation: server-tools-16.0/server-tools-16.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auditlog/es_AR/
2023-11-14 15:19:45 +01:00
Weblate d48d14ce47 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-16.0/server-tools-16.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auditlog/
2023-11-14 15:19:45 +01:00
OCA-git-bot a95c15ea50 [UPD] README.rst 2023-11-14 15:19:45 +01:00
oca-ci 460a0d326e [UPD] Update auditlog.pot 2023-11-14 15:19:45 +01:00
Bert Van Groenendael 737c81b25f [IMP] auditlog: dedicated security groups for model access 2023-11-14 15:19:45 +01:00
Stefan Rijnhart 1434cedc89 [MIG] auditlog: Migration to 16.0 2023-11-14 15:19:45 +01:00
OCA-git-bot 37b060d5d6 auditlog 15.0.1.1.1 2023-11-14 15:19:45 +01:00
Alexandre Fayolle a6c49ce538 [FIX] auditlog: autovacuum performance
Add database indices on the foreign key fields of the auditlog models.
Without these indices, the performance of the autovacuum cron are terrible
because the "ON DELETE SET NULL" trigger has to make a full table scan
on the auditlog_log and auditlog_log_line tables when
auditlog_http_session and auditlog_http_request rows are deleted.
2023-11-14 15:19:45 +01:00
Ignacio Buioli aef7c54fc2 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (83 of 83 strings)

Translation: server-tools-15.0/server-tools-15.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-auditlog/es_AR/
2023-11-14 15:19:45 +01:00
OCA Transbot d3bf4054a9 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-15.0/server-tools-15.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-auditlog/
2023-11-14 15:19:45 +01:00