Skip to content

Commit

Permalink
fix _default_vat_subjected
Browse files Browse the repository at this point in the history
  • Loading branch information
luc-demeyer committed May 4, 2020
1 parent f5a3a08 commit 97172b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_be_coa_multilang/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ResPartner(models.Model):
@api.model
def _default_vat_subjected(self):
if self.company_type == 'company':
self.vat_subjected == self.vat and True or False
return self.vat and True or False

@api.onchange('vat')
def _onchange_vat(self):
Expand Down

0 comments on commit 97172b9

Please sign in to comment.