diff --git a/account_voucher_ar.py b/account_voucher_ar.py index 59a8750..09a34cd 100644 --- a/account_voucher_ar.py +++ b/account_voucher_ar.py @@ -193,6 +193,8 @@ class AccountVoucher(metaclass=PoolMeta): 'account_retencion_ar.msg_party_ganancias_condition')) if self.party.ganancias_condition == 'ex': return {} + if self.party.iva_condition not in ['responsable_inscripto', 'exento']: + return {} quantize = Decimal(10) ** -Decimal(2) res = {} @@ -402,6 +404,8 @@ class AccountVoucher(metaclass=PoolMeta): 'account_retencion_ar.msg_party_iibb_condition')) if self.party.iibb_condition in ['ex', 'rs', 'na', 'cs']: return {} + if self.party.iva_condition not in ['responsable_inscripto', 'exento']: + return {} company_address = self.company.party.address_get('invoice') if not company_address or not company_address.subdivision: raise UserError(gettext( diff --git a/invoice.py b/invoice.py index 1527219..dd01bef 100644 --- a/invoice.py +++ b/invoice.py @@ -78,6 +78,8 @@ class Invoice(metaclass=PoolMeta): 'account_retencion_ar.msg_party_iibb_condition')) if self.party.iibb_condition in ['ex', 'rs', 'na', 'cs']: return {} + if self.party.iva_condition not in ['responsable_inscripto', 'exento']: + return {} company_address = self.company.party.address_get('invoice') if not company_address or not company_address.subdivision: raise UserError(gettext(