| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="l10n_dk_nemhandel_view_move_form" model="ir.ui.view"> |
| 4 |
<field name="name">l10n.dk.nemhandel.view.move.form</field> |
| 5 |
<field name="model">account.move</field> |
| 6 |
<field name="priority">30</field> |
| 7 |
<field name="inherit_id" ref="account.view_move_form"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<header position="inside"> |
| 10 |
<button name="action_cancel_nemhandel_documents" |
| 11 |
type="object" |
| 12 |
class="btn btn-secondary" |
| 13 |
string="Cancel Nemhandel" |
| 14 |
invisible="nemhandel_move_state != 'to_send' or state == 'draft'"/> |
| 15 |
</header> |
| 16 |
<xpath expr="//div[@name='journal_div']" position="after"> |
| 17 |
<label for="nemhandel_move_state" |
| 18 |
invisible="not nemhandel_move_state or state == 'draft' or move_type in ('in_invoice', 'in_refund')"/> |
| 19 |
<div name="nemhandel_div" |
| 20 |
class="d-flex" |
| 21 |
invisible="not nemhandel_move_state or state == 'draft' or move_type in ('in_invoice', 'in_refund')"> |
| 22 |
<field name="nemhandel_move_state" class="oe_inline"/> |
| 23 |
<span class="mx-1" invisible="'demo_' not in nemhandel_message_uuid"> (Demo)</span> |
| 24 |
<span class="text-muted mx-3" |
| 25 |
invisible="nemhandel_move_state != 'to_send'"> |
| 26 |
The invoice will be sent automatically via Nemhandel |
| 27 |
</span> |
| 28 |
</div> |
| 29 |
</xpath> |
| 30 |
</field> |
| 31 |
</record> |
| 32 |
|
| 33 |
<record id="nemhandel_view_out_invoice_tree_inherit" model="ir.ui.view"> |
| 34 |
<field name="name">account.move.out.invoice.tree.inherit</field> |
| 35 |
<field name="model">account.move</field> |
| 36 |
<field name="inherit_id" ref="account.view_out_invoice_tree"/> |
| 37 |
<field name="arch" type="xml"> |
| 38 |
<field name="status_in_payment" position="before"> |
| 39 |
<field name="nemhandel_move_state" optional="hide"/> |
| 40 |
</field> |
| 41 |
</field> |
| 42 |
</record> |
| 43 |
|
| 44 |
<record id="nemhandel_view_out_credit_note_tree_inherit" model="ir.ui.view"> |
| 45 |
<field name="name">account.move.credit.note.tree.inherit</field> |
| 46 |
<field name="model">account.move</field> |
| 47 |
<field name="inherit_id" ref="account.view_out_credit_note_tree"/> |
| 48 |
<field name="arch" type="xml"> |
| 49 |
<field name="status_in_payment" position="before"> |
| 50 |
<field name="nemhandel_move_state" optional="show"/> |
| 51 |
</field> |
| 52 |
</field> |
| 53 |
</record> |
| 54 |
|
| 55 |
<record id="nemhandel_view_account_invoice_filter" model="ir.ui.view"> |
| 56 |
<field name="name">account.invoice.select.inherit</field> |
| 57 |
<field name="model">account.move</field> |
| 58 |
<field name="inherit_id" ref="account.view_account_invoice_filter"/> |
| 59 |
<field name="arch" type="xml"> |
| 60 |
<xpath expr="//search/group/filter[@name='status']" position="after"> |
| 61 |
<filter string="Nemhandel status" name="nemhandel_move_state" context="{'group_by': 'nemhandel_move_state'}"/> |
| 62 |
</xpath> |
| 63 |
<xpath expr="//filter[@name='to_check']" position='after'> |
| 64 |
<separator/> |
| 65 |
<filter name="nemhandel_ready" |
| 66 |
string="Nemhandel Ready" |
| 67 |
domain="[('state', '=', 'posted'), ('nemhandel_move_state', '=', 'ready'), ('move_type', 'in', ('out_invoice', 'out_refund', 'out_receipt'))]"/> |
| 68 |
<separator/> |
| 69 |
</xpath> |
| 70 |
</field> |
| 71 |
</record> |
| 72 |
</odoo> |