Skip to content

Commit

Permalink
[FIX] l10n_br_base_address: #1059 (#1061)
Browse files Browse the repository at this point in the history
Fix the compute address method name.
  • Loading branch information
fabioluna authored Mar 29, 2021
1 parent c0550b0 commit 1feb5c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.tool-versions
.vim/
*.swp
.vscode/
4 changes: 2 additions & 2 deletions l10n_br_base_address/models/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1feb5c0

Please sign in to comment.