| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="view_move_form" model="ir.ui.view"> |
| 5 |
<field name="name">account.move.form.inherit.l10n_rs_edi</field> |
| 6 |
<field name="model">account.move</field> |
| 7 |
<field name="inherit_id" ref="account.view_move_form"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<xpath expr="//field[@name='delivery_date']" position="after"> |
| 10 |
<field name="l10n_rs_tax_date_obligations_code" |
| 11 |
invisible="country_code != 'RS' and move_type != 'out_invoice'" |
| 12 |
required="country_code == 'RS' and move_type == 'out_invoice'"/> |
| 13 |
</xpath> |
| 14 |
|
| 15 |
<xpath expr="//field[@name='delivery_date']" position="attributes"> |
| 16 |
<attribute name="required">country_code == 'RS' and l10n_rs_tax_date_obligations_code == '35'</attribute> |
| 17 |
</xpath> |
| 18 |
|
| 19 |
<xpath expr="//sheet" position="before"> |
| 20 |
<div class="alert alert-warning" role="alert" invisible="not l10n_rs_edi_error"> |
| 21 |
<div class="p-0 m-0"> |
| 22 |
<i class="fa fa-warning" role="img" title="Serbian eFaktura"/> |
| 23 |
<span class="mx-1">Serbian E-invoice Error:</span> |
| 24 |
</div> |
| 25 |
<field name="l10n_rs_edi_error"/> |
| 26 |
</div> |
| 27 |
</xpath> |
| 28 |
|
| 29 |
<xpath expr="//page[@id='other_tab_entry']" position="before"> |
| 30 |
<page id="l10n_rs_edi" |
| 31 |
string="eFaktura" |
| 32 |
invisible="not l10n_rs_edi_state"> |
| 33 |
<group> |
| 34 |
<group> |
| 35 |
<field name="l10n_rs_edi_state" readonly="1"/> |
| 36 |
</group> |
| 37 |
<group> |
| 38 |
<field name="l10n_rs_edi_invoice" readonly="1"/> |
| 39 |
<field name="l10n_rs_edi_sales_invoice" readonly="1"/> |
| 40 |
<field name="l10n_rs_edi_purchase_invoice" readonly="1"/> |
| 41 |
</group> |
| 42 |
</group> |
| 43 |
<group> |
| 44 |
<field name="l10n_rs_edi_attachment_file" widget="binary" filename="l10n_rs_edi_attachment_file" readonly="1"/> |
| 45 |
</group> |
| 46 |
</page> |
| 47 |
</xpath> |
| 48 |
</field> |
| 49 |
</record> |
| 50 |
|
| 51 |
</odoo> |