diff --git a/l10n_it_fatturapa_pec/README.rst b/l10n_it_fatturapa_pec/README.rst index 68194139d431..d044d90718ba 100644 --- a/l10n_it_fatturapa_pec/README.rst +++ b/l10n_it_fatturapa_pec/README.rst @@ -57,10 +57,14 @@ Configuration Consultare il modulo `l10n_it_sdi_channel`. +Lo stato dell'esportazione XML può essere forzato impostando 'Permettere di forzare lo stato dell'esportazione e-fattura' nelle impostazioni tecniche dell'utente. + **English** See `l10n_it_sdi_channel` module. +XML export state can ba forced setting 'Allow to force e-invoice export state' in user's technical settings. + Usage ===== diff --git a/l10n_it_fatturapa_pec/__manifest__.py b/l10n_it_fatturapa_pec/__manifest__.py index 66a79a9762d1..09a8f1800723 100644 --- a/l10n_it_fatturapa_pec/__manifest__.py +++ b/l10n_it_fatturapa_pec/__manifest__.py @@ -21,6 +21,7 @@ 'l10n_it_sdi_channel', ], 'data': [ + 'security/groups.xml', 'views/account.xml', 'views/fatturapa_attachment_out.xml', 'wizard/send_pec_view.xml', diff --git a/l10n_it_fatturapa_pec/i18n/l10n_it_fatturapa_pec.pot b/l10n_it_fatturapa_pec/i18n/l10n_it_fatturapa_pec.pot index f31fa9737813..bea8eb047b91 100644 --- a/l10n_it_fatturapa_pec/i18n/l10n_it_fatturapa_pec.pot +++ b/l10n_it_fatturapa_pec/i18n/l10n_it_fatturapa_pec.pot @@ -31,6 +31,11 @@ msgstr "" msgid "Accepted" msgstr "" +#. module: l10n_it_fatturapa_pec +#: model:res.groups,name:l10n_it_fatturapa_pec.group_force_e_inv_export_state +msgid "Allow to force e-invoice export state" +msgstr "" + #. module: l10n_it_fatturapa_pec #: model_terms:ir.ui.view,arch_db:l10n_it_fatturapa_pec.wizard_fatturapa_send_pec_view msgid "Cancel" diff --git a/l10n_it_fatturapa_pec/models/fatturapa_attachment_out.py b/l10n_it_fatturapa_pec/models/fatturapa_attachment_out.py index 69776f61b874..6fab01940a62 100644 --- a/l10n_it_fatturapa_pec/models/fatturapa_attachment_out.py +++ b/l10n_it_fatturapa_pec/models/fatturapa_attachment_out.py @@ -31,7 +31,7 @@ class FatturaPAAttachmentOut(models.Model): ('accepted', 'Accepted'), ], string='State', - default='ready',) + default='ready', track_visibility='onchange') last_sdi_response = fields.Text( string='Last Response from Exchange System', default='No response yet', diff --git a/l10n_it_fatturapa_pec/readme/CONFIGURE.rst b/l10n_it_fatturapa_pec/readme/CONFIGURE.rst index ca85c7d9ae1d..4c1d57d5b8ad 100644 --- a/l10n_it_fatturapa_pec/readme/CONFIGURE.rst +++ b/l10n_it_fatturapa_pec/readme/CONFIGURE.rst @@ -2,6 +2,10 @@ Consultare il modulo `l10n_it_sdi_channel`. +Lo stato dell'esportazione XML può essere forzato impostando 'Permettere di forzare lo stato dell'esportazione e-fattura' nelle impostazioni tecniche dell'utente. + **English** See `l10n_it_sdi_channel` module. + +XML export state can ba forced setting 'Allow to force e-invoice export state' in user's technical settings. diff --git a/l10n_it_fatturapa_pec/security/groups.xml b/l10n_it_fatturapa_pec/security/groups.xml new file mode 100644 index 000000000000..2cfd4bcca4c4 --- /dev/null +++ b/l10n_it_fatturapa_pec/security/groups.xml @@ -0,0 +1,9 @@ + + + + + Allow to force e-invoice export state + + + + diff --git a/l10n_it_fatturapa_pec/static/description/index.html b/l10n_it_fatturapa_pec/static/description/index.html index 17f011f5ae65..7aa878f0f74f 100644 --- a/l10n_it_fatturapa_pec/static/description/index.html +++ b/l10n_it_fatturapa_pec/static/description/index.html @@ -396,8 +396,10 @@

Italian Localization - Fattura elettronica - Supporto PEC

Configuration

Italiano

Consultare il modulo l10n_it_sdi_channel.

+

Lo stato dell’esportazione XML può essere forzato impostando ‘Permettere di forzare lo stato dell’esportazione e-fattura’ nelle impostazioni tecniche dell’utente.

English

See l10n_it_sdi_channel module.

+

XML export state can ba forced setting ‘Allow to force e-invoice export state’ in user’s technical settings.

Usage

diff --git a/l10n_it_fatturapa_pec/views/fatturapa_attachment_out.xml b/l10n_it_fatturapa_pec/views/fatturapa_attachment_out.xml index 829fc71958f8..64d5cef2c9d6 100644 --- a/l10n_it_fatturapa_pec/views/fatturapa_attachment_out.xml +++ b/l10n_it_fatturapa_pec/views/fatturapa_attachment_out.xml @@ -35,6 +35,18 @@ + + view_fatturapa_out_pec_attachment_form_statusbar + fatturapa.attachment.out + + + + + 1 + + + + view_fatturapa_out_attachment_tree_state fatturapa.attachment.out