1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
|
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="account_edi.action_open_edi_documents" model="ir.actions.act_window">
<field name="name">Electronic invoicing</field>
<field name="res_model">account.edi.document</field>
<field name="view_mode">list</field>
<field name="domain">[('move_id', '=', active_id), ('error', '!=', False)]</field>
</record>
<record id="view_out_invoice_tree_inherit" model="ir.ui.view">
<field name="name">account.move.list.inherit</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_out_invoice_tree" />
<field name="arch" type="xml">
<field name="status_in_payment" position="before">
<field name="edi_state" optional="hide" class="fw-bold"
decoration-muted="edi_blocking_level == 'info'"
decoration-danger="edi_blocking_level == 'error'"
decoration-warning="edi_blocking_level == 'warning'"
/>
<field name="edi_blocking_level" optional="hide"/>
<field name="edi_error_message" optional="hide"/>
</field>
</field>
</record>
<record id="view_out_credit_note_tree_inherit" model="ir.ui.view">
<field name="name">account.move.list.inherit</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_out_credit_note_tree" />
<field name="arch" type="xml">
<field name="status_in_payment" position="before">
<field name="edi_state" optional="hide"/>
<field name="edi_blocking_level" optional="hide"/>
<field name="edi_error_message" optional="hide"/>
</field>
</field>
</record>
<record id="view_in_invoice_refund_tree_inherit" model="ir.ui.view">
<field name="name">account.move.list.inherit</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_in_invoice_refund_tree" />
<field name="arch" type="xml">
<field name="status_in_payment" position="before">
<field name="edi_state" optional="hide"/>
<field name="edi_blocking_level" optional="hide"/>
<field name="edi_error_message" optional="hide"/>
</field>
</field>
</record>
<record id="view_account_invoice_filter" model="ir.ui.view">
<field name="name">account.invoice.select.inherit</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_account_invoice_filter"/>
<field name="arch" type="xml">
<xpath expr="//search/group/filter[@name='status']" position="after">
<filter string="Electronic invoicing state" name="edi_state" groups="base.group_no_one"
context="{'group_by': 'edi_state'}"/>
<separator/>
<filter string="Electronic invoicing processing needed" name="edi_to_process" groups="base.group_no_one"
domain="[('edi_state', 'in', [('to_send'), ('to_cancel')])]"/>
</xpath>
</field>
</record>
<record id="view_move_form_inherit" model="ir.ui.view">
<field name="name">account.move.form.inherit</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form" />
<field name="arch" type="xml">
<xpath expr="//button[@name='button_cancel']" position="after">
<field name="edi_show_cancel_button" invisible="1"/>
<field name="edi_show_abandon_cancel_button" invisible="1"/>
<field name="edi_show_force_cancel_button" invisible="1"/>
<button name="button_cancel_posted_moves"
string="Request EDI Cancellation"
type="object"
groups="account.group_account_invoice"
invisible="not edi_show_cancel_button"
data-hotkey="x"/>
<button name="button_abandon_cancel_posted_posted_moves"
string="Call off EDI Cancellation"
type="object"
groups="account.group_account_invoice"
invisible="not edi_show_abandon_cancel_button"/>
</xpath>
<xpath expr="//header" position="after">
<field name="edi_blocking_level" invisible="1" />
<field name="edi_error_count" invisible="1" />
<div class="d-flex alert alert-info justify-content-between" role="alert"
invisible="edi_web_services_to_process in ['', False] or state == 'draft'">
<div>The invoice will soon be sent to
<field name="edi_web_services_to_process" class="w-auto"/>
</div>
<button name="button_process_edi_web_services" type="object" class="oe_link ps-0 text-decoration-underline" string="Process now"/>
</div>
<div class="alert alert-danger" role="alert"
invisible="edi_error_count == 0 or edi_blocking_level != 'error'">
<div class="o_row">
<field name="edi_error_message" />
<button name="button_force_cancel"
string="Force Cancel"
type="object"
groups="account.group_account_invoice"
confirm="Are you sure you want to cancel this invoice without waiting for the EDI document to be canceled?"
invisible="not edi_show_force_cancel_button" />
<button name="%(account_edi.action_open_edi_documents)d" string="⇒ See errors" type="action" class="oe_link" invisible="edi_error_count == 1" />
<button name="action_retry_edi_documents_error" type="object" class="oe_link oe_inline" string="Retry" />
</div>
</div>
<div class="alert alert-warning" role="alert"
invisible="edi_error_count == 0 or edi_blocking_level != 'warning'">
<div class="o_row">
<field name="edi_error_message" />
<button name="%(account_edi.action_open_edi_documents)d" string="⇒ See errors" type="action" class="oe_link" invisible="edi_error_count == 1" />
</div>
</div>
<div class="alert alert-info" role="alert"
invisible="edi_error_count == 0 or edi_blocking_level != 'info'">
<div class="o_row">
<field name="edi_error_message" />
<button name="%(account_edi.action_open_edi_documents)d" string="⇒ See errors" type="action" class="oe_link" invisible="edi_error_count == 1" />
</div>
</div>
</xpath>
<xpath expr="//div[@name='journal_div']" position="after">
<field name="edi_state" invisible="not edi_state or state == 'draft'"/>
</xpath>
<xpath expr="//page[@id='other_tab']" position="after">
<page id="edi_documents"
string="EDI Documents"
name="page_edi_documents"
groups="base.group_no_one"
invisible="not edi_document_ids">
<field name="edi_document_ids">
<list create="false" delete="false" edit="false" decoration-danger="error" no_open="1">
<field name="name"/>
<field name="edi_format_name"/>
<field name="state"/>
<field name="error" column_invisible="True"/>
<field name="blocking_level" column_invisible="True"/>
<button name="action_export_xml"
type="object"
class="oe_link oe_inline"
string="Download"
groups="base.group_no_one"
invisible="not error or blocking_level == 'info'"/>
</list>
</field>
</page>
</xpath>
</field>
</record>
</data>
</odoo>
|