From 8193e3c702e5f79423273650bed2a7ef5e8781bf Mon Sep 17 00:00:00 2001 From: Fabio Luna Date: Fri, 26 Mar 2021 20:17:54 -0300 Subject: [PATCH] [FIX] l10n_br_base_address: #1059 Fix the compute address method name. --- .gitignore | 1 + l10n_br_base_address/models/res_company.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 41bb35820..7035abfc0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ .tool-versions .vim/ *.swp +.vscode/ diff --git a/l10n_br_base_address/models/res_company.py b/l10n_br_base_address/models/res_company.py index cc6e66df5..9238154df 100644 --- a/l10n_br_base_address/models/res_company.py +++ b/l10n_br_base_address/models/res_company.py @@ -9,8 +9,8 @@ class ResCompany(models.Model): ] _name = 'res.company' - def _get_company_address_fields(self, partner): - vals = super(ResCompany, self)._get_company_address_fields(partner) + def _get_company_address_update(self, partner): + vals = super(ResCompany, self)._get_company_address_update(partner) vals.update({ 'l10n_br_cnpj_cpf': partner.l10n_br_cnpj_cpf, 'l10n_br_legal_name': partner.l10n_br_legal_name,