Skip to content

Commit

Permalink
FIX l10n_it_fiscal_document_type: when "Fiscal Document Type" is set …
Browse files Browse the repository at this point in the history
…on partner, that type should not be used for refunds
  • Loading branch information
eLBati authored and andreampiovesana committed Aug 23, 2019
1 parent e4f7d0c commit e34ed3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_it_fiscal_document_type/models/account_invoice.py
Expand Up @@ -34,9 +34,9 @@ def _get_document_fiscal_type(self, type=None, partner=None,

# Partner
if partner:
if type in ('out_invoice', 'out_refund'):
if type in ('out_invoice'):
doc_id = partner.out_fiscal_document_type.id or False
elif type in ('in_invoice', 'in_refund'):
elif type in ('in_invoice'):
doc_id = partner.in_fiscal_document_type.id or False
# Fiscal Position
if not doc_id and fiscal_position:
Expand Down

0 comments on commit e34ed3b

Please sign in to comment.