mirror of
https://github.com/bringout/oca-edi.git
synced 2026-04-24 18:52:03 +02:00
Initial commit: OCA Edi packages (42 packages)
This commit is contained in:
commit
df976c03db
2184 changed files with 571602 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2024 Akretion France (http://www.akretion.com/)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
|
||||
|
||||
<record id="view_move_form" model="ir.ui.view">
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_move_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//page[@id='invoice_tab']/field[@name='invoice_line_ids']/tree/field[@name='name']"
|
||||
position="attributes"
|
||||
>
|
||||
<attribute name="required">1</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2017-2022 Akretion France (http://www.akretion.com/)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
<record id="view_account_config_settings" model="ir.ui.view">
|
||||
<field name="name">account_invoice_facturx.res.config.settings</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="account_einvoice_generate.view_account_config_settings"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<div id="e-invoices" position="after">
|
||||
<div class="col-xs-12 col-md-6 o_setting_box" id="facturx">
|
||||
<div class="o_setting_left_pane" />
|
||||
<div class="o_setting_right_pane">
|
||||
<div
|
||||
class="content-group"
|
||||
name="facturx_level"
|
||||
attrs="{'invisible': [('xml_format_in_pdf_invoice', '!=', 'factur-x')]}"
|
||||
>
|
||||
<div class="row mt16">
|
||||
<label for="facturx_level" class="col-md-5" />
|
||||
<field
|
||||
name="facturx_level"
|
||||
attrs="{'required': [('xml_format_in_pdf_invoice', '=', 'factur-x')]}"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="content-group"
|
||||
name="facturx_refund_type"
|
||||
attrs="{'invisible': [('xml_format_in_pdf_invoice', '!=', 'factur-x')]}"
|
||||
>
|
||||
<div class="row mt16">
|
||||
<label for="facturx_refund_type" class="col-md-5" />
|
||||
<field
|
||||
name="facturx_refund_type"
|
||||
attrs="{'required': [('xml_format_in_pdf_invoice', '=', 'factur-x')]}"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright 2017-2022 Akretion France (http://www.akretion.com/)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
<odoo>
|
||||
<!-- The factur-X standard says that country is a required XML tag for
|
||||
buyer and seller. So, to avoid getting error messages upon invoice generation
|
||||
for missing country, it's better to put the field as required in the view
|
||||
(I don't put it as required on the field definition, because it may
|
||||
block other modules or data) -->
|
||||
<record id="view_partner_form" model="ir.ui.view">
|
||||
<field name="name">factur-x.country.required.on.res.partner</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//div[hasclass('o_address_format')]/field[@name='country_id']"
|
||||
position="attributes"
|
||||
>
|
||||
<attribute name="required">1</attribute>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="//field[@name='child_ids']/form//field[@name='country_id']"
|
||||
position="attributes"
|
||||
>
|
||||
<attribute name="required">1</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue