| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<data> |
| 4 |
<record id="view_account_move_reversal_inherit_ecpay" model="ir.ui.view"> |
| 5 |
<field name="name">ec_account_invoice_refund_form_inherit</field> |
| 6 |
<field name="model">account.move.reversal</field> |
| 7 |
<field name="inherit_id" ref="account.view_account_move_reversal"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<xpath expr="//field[@name='reason']" position="attributes"> |
| 10 |
<attribute name="required">l10n_tw_edi_ecpay_invoice_id</attribute> |
| 11 |
</xpath> |
| 12 |
<xpath expr="//field[@name='reason']" position="after"> |
| 13 |
<field name="l10n_tw_edi_refund_agreement_type" invisible="not l10n_tw_edi_ecpay_invoice_id or l10n_tw_edi_is_b2b" required="l10n_tw_edi_ecpay_invoice_id"/> |
| 14 |
<field name="l10n_tw_edi_allowance_notify_way" invisible="not l10n_tw_edi_ecpay_invoice_id or l10n_tw_edi_is_b2b" required="l10n_tw_edi_ecpay_invoice_id"/> |
| 15 |
</xpath> |
| 16 |
</field> |
| 17 |
</record> |
| 18 |
</data> |
| 19 |
</odoo> |