mirror of
https://gitlab.com/datalifeit/trytond-aeat_sii
synced 2023-12-13 20:30:37 +01:00
Add missing sii_book_key depends in invoice fields
This commit is contained in:
parent
17430b2fe7
commit
9293f16358
2 changed files with 6 additions and 7 deletions
|
@ -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(
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue