| 1 |
<odoo> |
| 2 |
<record id="view_move_form_l10n_pl_edi" model="ir.ui.view"> |
| 3 |
<field name="name">account.move.form.l10n_pl_edi</field> |
| 4 |
<field name="model">account.move</field> |
| 5 |
<field name="inherit_id" ref="account.view_move_form"/> |
| 6 |
<field name="arch" type="xml"> |
| 7 |
|
| 8 |
<xpath expr="//button[@name='action_invoice_sent']" position="before"> |
| 9 |
<button |
| 10 |
name="action_l10n_pl_edi_update_invoice_status" |
| 11 |
string="Check Sending" |
| 12 |
invisible="(l10n_pl_edi_status != 'sent') or not l10n_pl_edi_ref" |
| 13 |
type="object" |
| 14 |
class="oe_highlight" |
| 15 |
data-hotkey="shift+K" |
| 16 |
/> |
| 17 |
<button |
| 18 |
name="action_l10n_pl_edi_get_invoice_UPO" |
| 19 |
string="Download UPO" |
| 20 |
invisible="(l10n_pl_edi_status != 'accepted') or l10n_pl_edi_upo_id" |
| 21 |
type="object" |
| 22 |
class="oe_highlight" |
| 23 |
data-hotkey="shift+U" |
| 24 |
/> |
| 25 |
</xpath> |
| 26 |
|
| 27 |
<xpath expr="//sheet" position="before"> |
| 28 |
<div class="alert alert-warning" |
| 29 |
role="alert" |
| 30 |
invisible="not l10n_pl_edi_header or state == 'draft' or l10n_pl_edi_status == 'accepted'"> |
| 31 |
<div class="d-flex align-items-center"> |
| 32 |
<field name="l10n_pl_edi_header" class="oe_inline" readonly="1"/> |
| 33 |
</div> |
| 34 |
</div> |
| 35 |
</xpath> |
| 36 |
|
| 37 |
<xpath expr="//group[@id='header_right_group']" position="inside"> |
| 38 |
<field name="l10n_pl_edi_status" invisible="not l10n_pl_edi_register"/> |
| 39 |
</xpath> |
| 40 |
|
| 41 |
<xpath expr="//page[@id='pl_extra']/group" position="inside"> |
| 42 |
<group invisible="not l10n_pl_edi_register"> |
| 43 |
<field name="l10n_pl_edi_number" groups="base.group_no_one" readonly="1"/> |
| 44 |
<field name="l10n_pl_edi_ref" groups="base.group_no_one" readonly="1"/> |
| 45 |
<field name="l10n_pl_edi_session_id" groups="base.group_no_one" readonly="1"/> |
| 46 |
<field name="l10n_pl_edi_attachment_id" groups="base.group_no_one" readonly="1"/> |
| 47 |
<field name="l10n_pl_edi_upo_id" groups="base.group_no_one" readonly="1"/> |
| 48 |
</group> |
| 49 |
</xpath> |
| 50 |
</field> |
| 51 |
</record> |
| 52 |
</odoo> |