Files
account-financial-tools/account_reversal/wizard/account_move_reverse_view.xml
Cédric Pigeon (ACSONE) a605243de3 [10.0][MIG] account_reversal migration (#445)
* OCA Transbot updated translations from Transifex
* Add option to reconcile the reversal move with the original move (#387)
* [IMP] account_reversal: Several improvements
* Default date for reverse move is not start_date of the period following the period of the original move (and not the period following today's period)
* Return form view of account.move if only 1 move is reversed
* Add option to reconcile with the reversal entry.
* [10.0][MIG] account_reversal migration
* [CHG] skid Odoo method to allow better performance on huge volume
2017-05-05 17:57:47 -05:00

50 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2011 Alexis de Lattre <alexis.delattre@akretion.com>
Copyright 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="view_account_move_reverse" model="ir.ui.view">
<field name="name">account.move.reverse.form</field>
<field name="model">account.move.reverse</field>
<field name="arch" type="xml">
<form string="Create reversal journal entries">
<label string="This will create reversal for all selected entries whether checked 'to be reversed' or not."/>
<group>
<group>
<field name="date"/>
<field name="journal_id"/>
</group>
<group>
<field name="move_prefix" />
<field name="line_prefix" />
<field name="reconcile"/>
</group>
</group>
<footer>
<button name="action_reverse" string="Reverse Entries"
type="object" class="oe_highlight"/>
or
<button string="Cancel" class="oe_link" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="act_account_move_reverse" model="ir.actions.act_window">
<field name="name">Reverse Entries</field>
<field name="res_model">account.move.reverse</field>
<field name="view_mode">form</field>
<field name="view_id" ref="view_account_move_reverse"/>
<field name="target">new</field>
</record>
<record id="account.action_account_move_reversal" model="ir.values">
<field name="value"
eval="'ir.actions.act_window,' + str(ref('act_account_move_reverse'))" />
</record>
</odoo>