[FIX] l10n_co: commercial_partner_country_id no longer exists

Removed by b341b5ca73. This function
copied the check_vat constrains decorator before that commit. Instead
replace with country_id because the l10n_co check_vat function still
uses that field.
This commit is contained in:
Joren Van Onder
2018-09-12 20:14:56 -07:00
parent 5e4fdaf731
commit c8371261dc
+1 -1
View File
@@ -45,7 +45,7 @@ class ResPartner(models.Model):
except ValueError:
partner.l10n_co_verification_code = False
@api.constrains('vat', 'commercial_partner_country_id', 'l10n_co_document_type')
@api.constrains('vat', 'country_id', 'l10n_co_document_type')
def check_vat(self):
# check_vat is implemented by base_vat which this localization
# doesn't directly depend on. It is however automatically