From 9d1b0e60880814ba0cf53d090addd72bda9434ec Mon Sep 17 00:00:00 2001 From: william-andre Date: Mon, 5 Jul 2021 12:54:09 +0000 Subject: [PATCH] [FIX] l10n_de: company.bank_ids is not the company's banks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The definition of the field is ```python bank_ids = fields.One2many('res.partner.bank', 'company_id', string='Bank Accounts', help='Bank accounts related to this company') ``` So all the banks of all partners registered for one company. closes odoo/odoo#73329 X-original-commit: 6c2ac88e843fb3b77e78e5fe52bd17b98bf7417e Signed-off-by: oco-odoo Signed-off-by: William André (wan) --- addons/l10n_de/models/base_document_layout.py | 2 +- addons/l10n_de/report/din5008_report.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/l10n_de/models/base_document_layout.py b/addons/l10n_de/models/base_document_layout.py index fbe13bf96f3..4b229bcb6b4 100644 --- a/addons/l10n_de/models/base_document_layout.py +++ b/addons/l10n_de/models/base_document_layout.py @@ -10,7 +10,7 @@ class BaseDocumentLayout(models.TransientModel): zip = fields.Char(related='company_id.zip', readonly=True) city = fields.Char(related='company_id.city', readonly=True) company_registry = fields.Char(related='company_id.company_registry', readonly=True) - bank_ids = fields.One2many(related='company_id.bank_ids', readonly=True) + bank_ids = fields.One2many(related='company_id.partner_id.bank_ids', readonly=True) account_fiscal_country_id = fields.Many2one(related='company_id.account_fiscal_country_id', readonly=True) l10n_de_template_data = fields.Binary(compute='_compute_l10n_de_template_data') l10n_de_document_title = fields.Char(compute='_compute_l10n_de_document_title') diff --git a/addons/l10n_de/report/din5008_report.xml b/addons/l10n_de/report/din5008_report.xml index 3914c5b8c34..561d1a2b19f 100644 --- a/addons/l10n_de/report/din5008_report.xml +++ b/addons/l10n_de/report/din5008_report.xml @@ -140,8 +140,8 @@ -
    - +
      +
    • IBAN:
    • BIC: