[FIX] account_reconcile_oca: Label duplication

Fixes #667
pull/808/head
Pedro M. Baeza 2024-08-24 17:22:19 +02:00 committed by Jordi Ballester Alomar
parent 8f9be78f03
commit 4e8cddab9f
3 changed files with 5 additions and 3 deletions

View File

@ -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"],

View File

@ -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"),

View File

@ -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(