From 4e8cddab9fa88f5a563cbac5bda28f4b9cfc7de6 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sat, 24 Aug 2024 17:22:19 +0200 Subject: [PATCH] [FIX] account_reconcile_oca: Label duplication Fixes #667 --- account_reconcile_oca/__manifest__.py | 2 +- account_reconcile_oca/models/account_journal.py | 4 +++- account_reconcile_oca/models/account_reconcile_abstract.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/account_reconcile_oca/__manifest__.py b/account_reconcile_oca/__manifest__.py index 9fc1b6b3..2543035f 100644 --- a/account_reconcile_oca/__manifest__.py +++ b/account_reconcile_oca/__manifest__.py @@ -5,7 +5,7 @@ "name": "Account Reconcile Oca", "summary": """ Reconcile addons for Odoo CE accounting""", - "version": "17.0.1.2.2", + "version": "17.0.1.2.3", "license": "AGPL-3", "author": "CreuBlanca,Dixmit,Odoo Community Association (OCA)", "maintainers": ["etobella"], diff --git a/account_reconcile_oca/models/account_journal.py b/account_reconcile_oca/models/account_journal.py index a88e106f..fb0a14a4 100644 --- a/account_reconcile_oca/models/account_journal.py +++ b/account_reconcile_oca/models/account_journal.py @@ -12,7 +12,9 @@ class AccountJournal(models.Model): default="edit", required=True, ) - company_currency_id = fields.Many2one(related="company_id.currency_id") + company_currency_id = fields.Many2one( + related="company_id.currency_id", string="Company Currency" + ) reconcile_aggregate = fields.Selection( [ ("statement", "Statement"), diff --git a/account_reconcile_oca/models/account_reconcile_abstract.py b/account_reconcile_oca/models/account_reconcile_abstract.py index 026b57c8..02ea9d02 100644 --- a/account_reconcile_oca/models/account_reconcile_abstract.py +++ b/account_reconcile_oca/models/account_reconcile_abstract.py @@ -30,7 +30,7 @@ class AccountReconcileAbstract(models.AbstractModel): currency_id = fields.Many2one("res.currency", readonly=True) foreign_currency_id = fields.Many2one("res.currency") company_currency_id = fields.Many2one( - "res.currency", related="company_id.currency_id" + related="company_id.currency_id", string="Company Currency" ) def _get_reconcile_line(