diff --git a/account_reconcile_analytic_tag/__manifest__.py b/account_reconcile_analytic_tag/__manifest__.py
index e6a35bc1d..866630369 100644
--- a/account_reconcile_analytic_tag/__manifest__.py
+++ b/account_reconcile_analytic_tag/__manifest__.py
@@ -12,5 +12,6 @@
"maintainers": ["victoralmau"],
"data": [
"views/account_bank_statement_line_views.xml",
+ "views/account_reconcile_model_views.xml",
],
}
diff --git a/account_reconcile_analytic_tag/models/__init__.py b/account_reconcile_analytic_tag/models/__init__.py
index 50480c58e..1bb76fe8f 100644
--- a/account_reconcile_analytic_tag/models/__init__.py
+++ b/account_reconcile_analytic_tag/models/__init__.py
@@ -1,3 +1,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import account_reconcile_abstract
from . import account_bank_statement_line
+from . import account_reconcile_model_line
diff --git a/account_reconcile_analytic_tag/models/account_reconcile_model_line.py b/account_reconcile_analytic_tag/models/account_reconcile_model_line.py
new file mode 100644
index 000000000..f1787867c
--- /dev/null
+++ b/account_reconcile_analytic_tag/models/account_reconcile_model_line.py
@@ -0,0 +1,18 @@
+# Copyright 2024 Tecnativa - Víctor Martínez
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
+from odoo import fields, models
+
+
+class AccountReconcileModelLine(models.Model):
+ _inherit = "account.reconcile.model.line"
+
+ analytic_tag_ids = fields.Many2many(
+ comodel_name="account.analytic.tag",
+ string="Analytic Tags",
+ domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]",
+ )
+
+ def _get_write_off_move_line_dict(self):
+ vals = super()._get_write_off_move_line_dict()
+ vals["manual_analytic_tag_ids"] = [(6, 0, self.analytic_tag_ids.ids)]
+ return vals
diff --git a/account_reconcile_analytic_tag/static/description/index.html b/account_reconcile_analytic_tag/static/description/index.html
index 64e025aab..80079933f 100644
--- a/account_reconcile_analytic_tag/static/description/index.html
+++ b/account_reconcile_analytic_tag/static/description/index.html
@@ -8,11 +8,10 @@
/*
:Author: David Goodger (goodger@python.org)
-:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
+:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
-Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
@@ -275,7 +274,7 @@
margin-left: 2em ;
margin-right: 2em }
-pre.code .ln { color: gray; } /* line numbers */
+pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +300,7 @@
span.pre {
white-space: pre }
-span.problematic, pre.problematic {
+span.problematic {
color: red }
span.section-subtitle {
@@ -410,9 +409,7 @@
This module is maintained by the OCA.
-
-
-
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
diff --git a/account_reconcile_analytic_tag/views/account_reconcile_model_views.xml b/account_reconcile_analytic_tag/views/account_reconcile_model_views.xml
new file mode 100644
index 000000000..f00159b36
--- /dev/null
+++ b/account_reconcile_analytic_tag/views/account_reconcile_model_views.xml
@@ -0,0 +1,21 @@
+
+
+
+ account.reconcile.model.form
+ account.reconcile.model
+
+
+
+
+
+
+
+