From 229570041fc6130c39a0bbc3eea3a882249a3618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= <victor.martinez@tecnativa.com> Date: Mon, 30 Sep 2024 10:55:35 +0200 Subject: [PATCH 1/2] [IMP] dms_auto_classification: Remove warning by several names with the same label WARNING devel odoo.addons.base.models.ir_model: Two fields (file_id, data_file) of wizard.dms.classification.detail() have the same label: File. [Modules: dms_auto_classification and dms_auto_classification] TT51051 --- dms_auto_classification/wizards/wizard_dms_classification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dms_auto_classification/wizards/wizard_dms_classification.py b/dms_auto_classification/wizards/wizard_dms_classification.py index ea9d629ef..23b22ddfa 100644 --- a/dms_auto_classification/wizards/wizard_dms_classification.py +++ b/dms_auto_classification/wizards/wizard_dms_classification.py @@ -137,7 +137,7 @@ class WizardDmsClassificationDetail(models.TransientModel): string="File name", ) data_file = fields.Binary( - string="File", + string="File content", required=True, ) directory_id = fields.Many2one( From 678a317fade7543e54d802733b628055fc25b6b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= <victor.martinez@tecnativa.com> Date: Mon, 30 Sep 2024 11:00:39 +0200 Subject: [PATCH 2/2] [IMP] dms_field_auto_classification: Remove warning by several names with the same label WARNING devel odoo.addons.base.models.ir_model: Two fields (model, model_id) of dms.classification.template() have the same label: Model. [Modules: dms_field_auto_classification and dms_field_auto_classification] TT51051 --- .../models/dms_classification_template.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dms_field_auto_classification/models/dms_classification_template.py b/dms_field_auto_classification/models/dms_classification_template.py index 5439e99f3..77fe1b647 100644 --- a/dms_field_auto_classification/models/dms_classification_template.py +++ b/dms_field_auto_classification/models/dms_classification_template.py @@ -10,7 +10,9 @@ class DmsClassificationTemplate(models.Model): model_id = fields.Many2one( comodel_name="ir.model", string="Model", domain=[("transient", "=", False)] ) - model = fields.Char(compute="_compute_model", compute_sudo=True) + model = fields.Char( + compute="_compute_model", string="Model name", compute_sudo=True + ) detail_ids = fields.One2many( string="Details", comodel_name="dms.classification.template.detail",