mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] Apply correct residual sign [FIX] Only calculate residual of transactions in draft state
19 lines
685 B
XML
19 lines
685 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<!--
|
|
Transition to reopening the invoice, triggered by
|
|
cancelling a bank transaction with which the invoice
|
|
was paid.
|
|
the existing workflow contains a similar step
|
|
but without the test on being reconciled
|
|
-->
|
|
<record id="paid_to_open" model="workflow.transition">
|
|
<field name="act_from" ref="account.act_paid"/>
|
|
<field name="act_to" ref="account.act_open_test"/>
|
|
<field name="condition">test_undo_paid()</field>
|
|
<field name="signal">undo_paid</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|