This commit is contained in:
Àngel Àlvarez 2017-05-25 09:52:19 +02:00
parent 407dde3bae
commit ab541a0e75
1 changed files with 2 additions and 4 deletions

View File

@ -81,14 +81,14 @@ class Invoice:
@staticmethod
def default_sii_received_key():
type_ = Transaction().context.get('type', 'ou_invoice')
type_ = Transaction().context.get('type', 'out_invoice')
if type_ == 'in_invoice':
return '01'
return 'None'
@staticmethod
def default_sii_operation_key():
type_ = Transaction().context.get('type', 'ou_invoice')
type_ = Transaction().context.get('type', 'out_invoice')
if type_ in ('in_credit_note', 'out_credit_note'):
return 'R1'
return 'F1'
@ -145,5 +145,3 @@ class Invoice:
result['sii_state'][inv] = state
return result