The goal is to allow multiple refund for a single invoice. It may happen to refund invoice partially and they refund again partially later.
25 lines
868 B
XML
25 lines
868 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="view_account_move_reversal" model="ir.ui.view">
|
|
<field name="model">account.move.reversal</field>
|
|
<field name="inherit_id" ref="account.view_account_move_reversal"/>
|
|
<field name="arch" type="xml">
|
|
<field name="residual" position="before">
|
|
<div
|
|
class="alert alert-warning"
|
|
role="alert"
|
|
attrs="{'invisible': [('already_reversed_warning', '=', False)]}"
|
|
>
|
|
You are about to reverse entries that have already been reversed or partially reversed (refund). Make sure it is intented.
|
|
Already reversed entries are the following :
|
|
<field
|
|
name="already_reversed_warning"
|
|
/>
|
|
</div>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|