Commit Graph

1493 Commits (d24f3d77a3fd5dd12e4ea70f48e1db478c6e06a2)

Author SHA1 Message Date
Atte Isopuro d24f3d77a3 [FIX] sentry: respect sentry_logging_level
Before this fix, the Sentry module sent events for WARNING-
level logs, even if sentry_logging_level was registered as
"error" or higher.

The fix itself is minor: setup of the integration mistakenly
set the hardcoded WARNING level to the event handler and the
sentry_logging_level to the breadcrumb handler, when they
should have been the other way around.

The largest part of the diff is a reworking of the tests in
order to properly replicate the issue:

* The test previously emitted a fake log event directly using
  the integration's handler's emit-method, which skipped the
  part of the logic that actually filters based on logging level.
  This has been changed to use a bespoke NoopHandler and dedicated
  Logger, so that the tests can emit "actual logs" and test Sentry
  as accurately as possible.
* The tests were not configured to use a non-default logging level,
  thus making it so that none of them caught the fact we were basically
  hard-coding the setting to WARNING-level.
  The tests now set the logging level to ERROR in order to make sure
  the configuration parameter works when it is non-default.
* Changes to configuration (especially ignored loggers) were leaking
  from one test into others. The tests were directly mutating the
  `odoo.tools.config.options` mapping, without resetting it afterward,
  leaving the changes in place for subsequent tests.
  Introduced a helper method `patch_config` that can be used to patch
  the config object so that the patch is undone at the end of the test.
2023-08-28 15:46:33 +03:00
mymage 7695bde3e2 Translated using Weblate (Italian)
Currently translated at 97.2% (35 of 36 strings)

Translation: server-tools-15.0/server-tools-15.0-module_analysis
Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-module_analysis/it/
2023-08-10 11:11:15 +00:00
OCA-git-bot 747bc0d43b [ADD] setup.py 2023-08-07 11:43:06 +00:00
OCA-git-bot 3b79d0a19c [UPD] README.rst 2023-08-07 11:43:05 +00:00
OCA-git-bot eb4221f110 [UPD] addons table in README.md 2023-08-07 11:42:57 +00:00
oca-ci 9effd5359e [UPD] Update base_translation_field_label.pot 2023-08-07 11:31:37 +00:00
OCA-git-bot 2a203ed71e Merge PR #2689 into 15.0
Signed-off-by LoisRForgeFlow
2023-08-07 11:22:23 +00:00
JasminSForgeFlow 3654424bde [MIG] base_translation_field_label: Migration to 15.0 2023-07-31 09:38:28 +05:30
JasminSForgeFlow a857697cf2 [IMP] base_translation_field_label: black, isort, prettier 2023-07-28 17:06:11 +05:30
OCA-git-bot c8bcecf2d4 [ADD] icon.png 2023-07-28 17:06:11 +05:30
OCA-git-bot 37a894df27 [UPD] README.rst 2023-07-28 17:06:11 +05:30
oca-ci 8cb863f78e [UPD] Update base_translation_field_label.pot 2023-07-28 17:06:11 +05:30
GuillemCForgeFlow a403556d53 [ADD]base_translation_field_label
Replace non human readable field description for the field label.
2023-07-28 17:06:11 +05:30
OCA-git-bot 8bfea32fee [ADD] setup.py 2023-07-17 12:38:28 +00:00
OCA-git-bot 503a75f2a8 [UPD] README.rst 2023-07-17 12:38:27 +00:00
OCA-git-bot b9480fd2f1 [UPD] addons table in README.md 2023-07-17 12:38:22 +00:00
oca-ci a84e9057e7 [UPD] Update attachment_unindex_content.pot 2023-07-17 12:29:02 +00:00
OCA-git-bot 1040bf6cb3 Merge PR #2679 into 15.0
Signed-off-by gurneyalex
2023-07-17 12:20:31 +00:00
Sébastien Alix 17a9ea368d [MIG] attachment_unindex_content: Migration to 15.0 2023-07-17 14:02:42 +02:00
Sébastien Alix 3fe1dccb7c [IMP] attachment_unindex_content: black, isort, prettier 2023-07-17 13:58:00 +02:00
OCA-git-bot 15e23fefd4 attachment_unindex_content 14.0.1.0.1 2023-07-17 13:57:11 +02:00
OCA-git-bot b906bb7166 [UPD] README.rst 2023-07-17 13:57:11 +02:00
Luis González 209257bdf5 [FIX] attachment_unindex_content: unsupported param on _index method
Odoo introduced a new param `checksum` to the method `_index` on the
attachment model [1]. Since that param is not supported on this model,
the following error is now being raised:

    TypeError: _index() got an unexpected keyword argument 'checksum'

[1] https://github.com/odoo/odoo/commit/3d59cc84
2023-07-17 13:57:11 +02:00
Ignacio Buioli d6f8b28d55 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (4 of 4 strings)

Translation: server-tools-14.0/server-tools-14.0-attachment_unindex_content
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-attachment_unindex_content/es_AR/
2023-07-17 13:57:11 +02:00
Ignacio Buioli 6fa446a7a3 Added translation using Weblate (Spanish (Argentina)) 2023-07-17 13:57:11 +02:00
Dept. Técnico 21e85d4546 Added translation using Weblate (Catalan) 2023-07-17 13:57:11 +02:00
OCA-git-bot 1acaa8d36a [UPD] README.rst 2023-07-17 13:57:11 +02:00
oca-travis b0ff27e8de [UPD] Update attachment_unindex_content.pot 2023-07-17 13:57:11 +02:00
Randall Castro b36ae72a8d [MIG] attachment_unindex_content: Migration to 14.0 2023-07-17 13:57:11 +02:00
OCA-git-bot fc246385dc [UPD] README.rst 2023-07-17 13:57:11 +02:00
oca-travis d61764e5a6 [UPD] Update attachment_unindex_content.pot 2023-07-17 13:57:11 +02:00
Randall Castro 688ed0cce7 [MIG] attachment_unindex_content: Migration to 13.0 2023-07-17 13:57:11 +02:00
Randall Castro f7d47fc13c [IMP] attachment_unindex_content: black, isort, prettier 2023-07-17 13:57:11 +02:00
OCA-git-bot ad1351d20e [ADD] icon.png 2023-07-17 13:57:11 +02:00
oca-travis c2f73e6353 [UPD] Update attachment_unindex_content.pot 2023-07-17 13:57:11 +02:00
Erick Birbe 861fd3cdd4 [ADD] attachment_unindex_content: Module to disable file indexation
This module is intended to disable the indexation of data on the
ir.attachment model.

Attachment model has a field called 'index_content' where the content
of the attachment is read and stored directly in the database. This field is
useful in order to search content of a file. But most of cases it is not used,
so, you can install this module in order to:

- **Avoid Duplicating Data:** Because indexation extracts text content
from files and put it on the database in order it could be searched, but
this implies you have the file data in your `filestore` directory, and
also part (or sometimes all) of that data in your database too.
- **Improve Performance:** Since not all indexed files are plain text, they
require extra process to read them.

Maybe you could try to uninstall modules like `document` in order to
disable its indexation features, but you could face the uninstallation of other
modules that could be useful for you (e.g, `hr_recruitment` depends on that).

But even if you don't have `document` installed, you'd still have
plain text content indexation by default.

Using this module you will not require to uninstall any module to
disable the attachment content indexation, because we directly disable it at
`ir.attachment` base.
2023-07-17 13:57:11 +02:00
OCA-git-bot cc1c44a658 [UPD] addons table in README.md 2023-07-07 19:20:15 +00:00
OCA-git-bot 456f64cf10 base_changeset 15.0.1.0.1 2023-07-07 19:20:10 +00:00
OCA-git-bot f467dd6a22 Merge PR #2669 into 15.0
Signed-off-by pedrobaeza
2023-07-07 19:07:54 +00:00
Stefan Rijnhart e01ce3d4c0 [FIX] base_changeset: permission error in Pending Changes widget. 2023-07-03 13:24:17 +02:00
Mark Schuit 292da0f91e [FIX] base_changeset: permission errors on models and fields
Fixes

```
Traceback (most recent call last):
  File "/home/odoo/15.0/parts/server-tools/base_changeset/tests/test_changeset_flow.py", line 63, in test_new_changeset
self.partner.write({"name": "Y", "street": "street Y", "street2": "street2 Y"})
  File "/home/odoo/15.0/parts/odoo/odoo/addons/base/models/res_partner.py", line 603, in write
result = result and super(Partner, self).write(vals)
  File "/home/odoo/15.0/parts/server-tools/base_changeset/models/base.py", line 97, in write
if self._changeset_disabled():
  File "/home/odoo/15.0/parts/server-tools/base_changeset/models/base.py", line 111, in _changeset_disabled
if self._name not in self.models_to_track_changeset():
  File "<decorator-gen-123>", line 2, in models_to_track_changeset
  File "/home/odoo/15.0/parts/odoo/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
  File "/home/odoo/15.0/parts/server-tools/base_changeset/models/base.py", line 71, in models_to_track_changeset
models = self.env["changeset.field.rule"].search([]).mapped("model_id.model")
  File "/home/odoo/15.0/parts/odoo/odoo/models.py", line 5464, in mapped
recs = recs._fields[name].mapped(recs)
  File "/home/odoo/15.0/parts/odoo/odoo/fields.py", line 1180, in mapped
self.__get__(first(remaining), type(remaining))
  File "/home/odoo/15.0/parts/odoo/odoo/fields.py", line 1089, in __get__
record._fetch_field(self)
  File "/home/odoo/15.0/parts/odoo/odoo/models.py", line 3276, in _fetch_field
self._read(fnames)
  File "/home/odoo/15.0/parts/odoo/odoo/models.py", line 3290, in _read
self.check_access_rights('read')
  File "/home/odoo/15.0/parts/odoo/odoo/models.py", line 3547, in check_access_rights
return self.env['ir.model.access'].check(self._name, operation, raise_exception)
  File "<decorator-gen-33>", line 2, in check
  File "/home/odoo/15.0/parts/odoo/odoo/tools/cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
  File "/home/odoo/15.0/parts/odoo/odoo/addons/base/models/ir_model.py", line 1820, in check
raise AccessError(msg)
odoo.exceptions.AccessError: You are not allowed to access 'Models' (ir.model) records.

This operation is allowed for the following groups:
- Administration/Access Rights
- Changeset Validations

Contact your administrator to request access if necessary.
```
2023-07-03 13:21:01 +02:00
OCA-git-bot 182257bf86 [ADD] setup.py 2023-06-26 09:46:09 +00:00
OCA-git-bot d02ba57f89 [UPD] README.rst 2023-06-26 09:46:09 +00:00
OCA-git-bot 354961163a [UPD] addons table in README.md 2023-06-26 09:46:04 +00:00
oca-ci e009037876 [UPD] Update base_model_restrict_update.pot 2023-06-26 09:36:26 +00:00
OCA-git-bot 6572056bba Merge PR #2620 into 15.0
Signed-off-by StefanRijnhart
2023-06-26 09:28:25 +00:00
Yoshi Tashiro e5f4163890 [FIX] base_model_restrict_update: button presentation
Before this commit, button presentation of 'Grant Update Permit' and 'Readonly' were
broken in the user form with the deprecation of boolean_button widget.

In this commit, we switch to use boolean_toggle for these buttons, with some other style
adjustments on the buttons.
2023-06-24 15:17:41 +07:00
Saran440 1ad4cf1f64 [MIG] base_model_restrict_update: Migration to 15.0 2023-06-24 15:17:41 +07:00
Saran440 5b0d8539ba [IMP] base_model_restrict_update: black, isort, prettier 2023-06-24 15:17:41 +07:00
Ignacio Buioli d28ae7ff89 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (14 of 14 strings)

Translation: server-tools-14.0/server-tools-14.0-base_model_restrict_update
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-base_model_restrict_update/es_AR/
2023-06-24 15:17:41 +07:00