forked from OCA/l10n-italy
/
fetchmail_view.xml
20 lines (19 loc) · 939 Bytes
/
fetchmail_view.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0"?>
<odoo>
<record id="view_email_server_form_e_invoice" model="ir.ui.view">
<field name="name">view_email_server_form_e_invoice</field>
<field name="model">fetchmail.server</field>
<field name="inherit_id" ref="fetchmail.view_email_server_form"/>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Last error message" attrs="{'invisible': [('last_pec_error_message', '=', False)]}">
<field name="last_pec_error_message"/>
</page>
</notebook>
<xpath expr="//notebook/page[1]/group[1]/group[3]" position="attributes">
<!-- Hiding, because it would not be considered. See 'fetch_mail' override -->
<attribute name="attrs">{'invisible': [('is_fatturapa_pec', '=', True)]}</attribute>
</xpath>
</field>
</record>
</odoo>