summaryrefslogtreecommitdiff
path: root/addons/l10n_it_edi_sdicoop/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/l10n_it_edi_sdicoop/views
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/l10n_it_edi_sdicoop/views')
-rw-r--r--addons/l10n_it_edi_sdicoop/views/l10n_it_view.xml75
-rw-r--r--addons/l10n_it_edi_sdicoop/views/res_config_settings_views.xml45
2 files changed, 120 insertions, 0 deletions
diff --git a/addons/l10n_it_edi_sdicoop/views/l10n_it_view.xml b/addons/l10n_it_edi_sdicoop/views/l10n_it_view.xml
new file mode 100644
index 00000000..40ea1041
--- /dev/null
+++ b/addons/l10n_it_edi_sdicoop/views/l10n_it_view.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <record id="fetchmail_server_form_l10n_it_inherit" model="ir.ui.view">
+ <field name="name">fetchmail.server.form.l10n.it.inherit</field>
+ <field name="model">fetchmail.server</field>
+ <field name="priority">30</field>
+ <field name="inherit_id" ref="l10n_it_edi.fetchmail_server_form_l10n_it"/>
+ <field name="arch" type="xml">
+ <data>
+ <xpath expr="//field[@name='l10n_it_is_pec']" position="replace" />
+ </data>
+ </field>
+ </record>
+
+ <record id="res_company_form_l10n_it_inherit" model="ir.ui.view">
+ <field name="name">res.company.form.l10n.it.inherit</field>
+ <field name="model">res.company</field>
+ <field name="priority">30</field>
+ <field name="inherit_id" ref="l10n_it_edi.res_company_form_l10n_it"/>
+ <field name="arch" type="xml">
+ <data>
+ <xpath expr="//field[@name='l10n_it_mail_pec_server_id']" position="replace"/>
+ <xpath expr="//field[@name='l10n_it_address_send_fatturapa']" position="replace"/>
+ <xpath expr="//field[@name='l10n_it_address_recipient_fatturapa']" position="replace"/>
+ </data>
+ </field>
+ </record>
+
+ <record id="l10n_it_edi.invoice_supplier_tree_l10n_it" model="ir.ui.view">
+ <field name="arch" type="xml">
+ <!-- Remove the l10n_state_it field. Doing so
+ with xpath might replace other view elements that we shouldn't remove.-->
+ <data/>
+ </field>
+ </record>
+
+ <record id="l10n_it_edi.invoice_kanban_l10n_it" model="ir.ui.view">
+ <field name="arch" type="xml">
+ <!-- Remove the l10n_state_it field. Doing so
+ with xpath might replace other view elements that we shouldn't remove.-->
+ <data/>
+ </field>
+ </record>
+
+ <record id="l10n_it_edi.account_invoice_form_l10n_it" model="ir.ui.view">
+ <field name="arch" type="xml">
+ <!-- Remove the l10n_state_it field but keep other info tab.
+ Doing so with xpath might repace other view elements that we shouldn't remove. -->
+ <data>
+ <xpath expr="//page[@name='other_info']" position="after">
+ <page string="Electronic Invoicing"
+ name="electronic_invoicing"
+ attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]}">
+ <group>
+ <group>
+ <field name="l10n_it_stamp_duty"/>
+ <field name="l10n_it_ddt_id"
+ attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund'))]}"/>
+ </group>
+ </group>
+ </page>
+ </xpath>
+ </data>
+ </field>
+ </record>
+
+
+ <record id="l10n_it_edi.view_account_invoice_filter_l10n_it" model="ir.ui.view">
+ <field name="arch" type="xml">
+ <!-- Remove the filters.-->
+ <data />
+ </field>
+ </record>
+
+</odoo>
diff --git a/addons/l10n_it_edi_sdicoop/views/res_config_settings_views.xml b/addons/l10n_it_edi_sdicoop/views/res_config_settings_views.xml
new file mode 100644
index 00000000..3929c555
--- /dev/null
+++ b/addons/l10n_it_edi_sdicoop/views/res_config_settings_views.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+
+ <record id="res_config_settings_view_form" model="ir.ui.view">
+ <field name="name">res.config.settings.view.form.inherit.proxy.user</field>
+ <field name="model">res.config.settings</field>
+ <field name="inherit_id" ref="account.res_config_settings_view_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//div[@id='account_vendor_bills']" position="after">
+ <div attrs="{'invisible':[('country_code', '!=', 'IT')]}">
+ <h2>Electronic Document Invoicing</h2>
+ <div class="row mt16 o_settings_container" id='account_edi'>
+ <div class="col-12 col-lg-6 o_setting_box">
+ <div class="o_setting_right_pane">
+ <span class="o_form_label">Allow Odoo to process invoices</span>
+ <div class="text-muted">
+ By clicking this button, I accept that Odoo may process my invoices.
+ </div>
+ <div class="content-group">
+ <field name="is_edi_proxy_active" invisible="True" />
+ <div class="row mt8">
+ <div class="col-lg-6" title="Register">
+ <button name="button_create_proxy_user"
+ type="object"
+ string="Register"
+ class="btn-primary" icon="fa-lg fa-check"
+ attrs="{'invisible':[('is_edi_proxy_active', '=', True)]}"/>
+ <button name="button_create_proxy_user"
+ type="object"
+ string="Already registered"
+ disabled="1"
+ class="btn-lnk" icon="fa-lg fa-check"
+ attrs="{'invisible':[('is_edi_proxy_active', '=', False)]}"/>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </xpath>
+ </field>
+ </record>
+
+</odoo>