Add missing sii_book_key depends in invoice fields

This commit is contained in:
Sergio Morillo 2017-06-23 00:03:18 +02:00
parent 17430b2fe7
commit 9293f16358
2 changed files with 6 additions and 7 deletions

View file

@ -30,12 +30,12 @@ class Invoice:
'SII Issued Key',
states={
'invisible': ~Eval('sii_book_key').in_(['E']),
})
}, depends=['sii_book_key'])
sii_received_key = fields.Selection(RECEIVE_SPECIAL_REGIME_KEY,
'SII Recived Key',
states={
'invisible': ~Eval('sii_book_key').in_(['R']),
})
}, depends=['sii_book_key'])
sii_subjected_key = fields.Selection(IVA_SUBJECTED, 'Subjected')
sii_excemption_key = fields.Selection(EXCEMPTION_CAUSE,
'Excemption Cause')
@ -43,10 +43,9 @@ class Invoice:
'SII Intracommunity Key',
states={
'invisible': ~Eval('sii_book_key').in_(['U']),
}
)
}, depends=['sii_book_key'])
sii_records = fields.One2Many('aeat.sii.report.lines', 'invoice',
"Sii Report Lines")
"SII Report Lines")
sii_state = fields.Function(fields.Selection(AEAT_INVOICE_STATE,
'SII State'), 'get_sii_state', searcher='search_sii_state')
sii_communication_type = fields.Function(fields.Selection(

View file

@ -39,8 +39,8 @@ msgid "SII Recived Key"
msgstr "SII Clave recibidas"
msgctxt "field:account.invoice,sii_records:"
msgid "Sii Report Lines"
msgstr "Sii Linias"
msgid "SII Report Lines"
msgstr "SII Linias"
msgctxt "field:account.invoice,sii_state:"
msgid "SII State"