Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.0] IMP l10n_it_fatturapa_pec allowing to force the XML export state. #935

Merged
merged 1 commit into from Feb 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions l10n_it_fatturapa_pec/README.rst
Expand Up @@ -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
=====

Expand Down
1 change: 1 addition & 0 deletions l10n_it_fatturapa_pec/__manifest__.py
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_pec/models/fatturapa_attachment_out.py
Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions l10n_it_fatturapa_pec/readme/CONFIGURE.rst
Expand Up @@ -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.
9 changes: 9 additions & 0 deletions l10n_it_fatturapa_pec/security/groups.xml
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="group_force_e_inv_export_state" model="res.groups">
<field name="name">Allow to force e-invoice export state</field>
<field name="category_id" ref="base.module_category_hidden"/>
</record>

</odoo>
2 changes: 2 additions & 0 deletions l10n_it_fatturapa_pec/static/description/index.html
Expand Up @@ -396,8 +396,10 @@ <h1 class="title">Italian Localization - Fattura elettronica - Supporto PEC</h1>
<h1><a class="toc-backref" href="#id1">Configuration</a></h1>
<p><strong>Italiano</strong></p>
<p>Consultare il modulo <cite>l10n_it_sdi_channel</cite>.</p>
<p>Lo stato dell’esportazione XML può essere forzato impostando ‘Permettere di forzare lo stato dell’esportazione e-fattura’ nelle impostazioni tecniche dell’utente.</p>
<p><strong>English</strong></p>
<p>See <cite>l10n_it_sdi_channel</cite> module.</p>
<p>XML export state can ba forced setting ‘Allow to force e-invoice export state’ in user’s technical settings.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
Expand Down
12 changes: 12 additions & 0 deletions l10n_it_fatturapa_pec/views/fatturapa_attachment_out.xml
Expand Up @@ -35,6 +35,18 @@
</field>
</record>

<record model="ir.ui.view" id="view_fatturapa_out_pec_attachment_form_statusbar">
<field name="name">view_fatturapa_out_pec_attachment_form_statusbar</field>
<field name="model">fatturapa.attachment.out</field>
<field name="inherit_id" ref="l10n_it_fatturapa_pec.view_fatturapa_out_pec_attachment_form"/>
<field name="groups_id" eval="[(4,ref('l10n_it_fatturapa_pec.group_force_e_inv_export_state'))]"/>
<field name="arch" type="xml">
<field name="state" position="attributes">
<attribute name="clickable">1</attribute>
</field>
</field>
</record>

<record model="ir.ui.view" id="view_fatturapa_out_attachment_tree_state">
<field name="name">view_fatturapa_out_attachment_tree_state</field>
<field name="model">fatturapa.attachment.out</field>
Expand Down