Initial commit: OCA Edi packages (42 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:05 +02:00
commit df976c03db
2184 changed files with 571602 additions and 0 deletions

View file

@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_move_form" model="ir.ui.view">
<field name="name">Account Invoice Export on Invoice form view</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form" />
<field name="arch" type="xml">
<field name="transmit_method_id" position="after">
<field name="invoice_exported" invisible="1" />
<field name="invoice_export_confirmed" invisible="1" />
<field name="send_through_http" invisible="1" />
</field>
<button name="action_invoice_sent" position="after">
<button
name="export_invoice"
string="Send eBill"
type="object"
attrs="{'invisible':['|', '|', '|', ('send_through_http', '=', False), ('state', '!=', 'posted'), ('invoice_exported', '=', True), ('move_type', 'not in', ('out_invoice', 'out_refund'))]}"
groups="base.group_user"
class="oe_highlight"
/>
<button
name="export_invoice"
string="Resend eBill"
type="object"
attrs="{'invisible':['|', '|', '|', ('send_through_http', '=', False), ('state', '!=', 'posted'), ('invoice_exported', '=', False), ('move_type', 'not in', ('out_invoice', 'out_refund'))]}"
context="{'resend_ebill': True}"
groups="base.group_user"
class="oe_highlight"
confirm="Ebill has already been sent. Are you sure you want to send it again ?"
/>
</button>
</field>
</record>
<record id="view_invoice_tree" model="ir.ui.view">
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_invoice_tree" />
<field name="arch" type="xml">
<field name="state" position="after">
<field
name="activity_exception_decoration"
widget="activity_exception"
/>
</field>
</field>
</record>
<record model="ir.actions.server" id="action_send_ebill">
<field name="name">Send eBill</field>
<field name="model_id" ref="account.model_account_move" />
<field name="binding_model_id" ref="account.model_account_move" />
<field name="state">code</field>
<field name="code">
records.export_invoice()
</field>
</record>
</odoo>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="exception_sending_invoice">
<div>
<p>Error sending invoice to <t t-out="transmit_method_name" />.</p>
<p>The failed job has the uuid <t t-out="job_id" /></p>
</div>
</template>
</odoo>

View file

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="transmit_method_form" model="ir.ui.view">
<field name="name">Transmit Method Form view Export</field>
<field name="model">transmit.method</field>
<field
name="inherit_id"
ref="account_invoice_transmit_method.transmit_method_form"
/>
<field name="arch" type="xml">
<xpath expr="//group[@name='main']" position="after">
<group
name="export"
attrs="{'invisible': [('customer_ok', '=', False)]}"
>
<field name="send_through_http" />
<div
role="alert"
class="alert alert-info"
colspan="2"
attrs="{'invisible': [('send_through_http', '=', False)]}"
>
<p
>By default the PDF of the invoice will be sent using the connection parameters below (basic authenticaiton).</p>
<p
>Handling specific connection needs and/or exporting other files can be done through code.</p>
</div>
<field
name="destination_url"
attrs="{'invisible': [('send_through_http', '=', False)]}"
/>
<field
name="destination_user"
attrs="{'invisible': [('send_through_http', '=', False)]}"
/>
<field
name="destination_pwd"
attrs="{'invisible': [('send_through_http', '=', False)]}"
/>
</group>
</xpath>
</field>
</record>
</odoo>