[FIX] account_reconcile_oca: Label duplication

Fixes #667
This commit is contained in:
Pedro M. Baeza
2024-08-24 17:22:19 +02:00
committed by GitHub
parent a2a3a195df
commit fdc333740f
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": "16.0.1.4.0",
"version": "16.0.1.4.1",
"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(