~pedro-q/account-payment/account-payment-sepa-7.0

« back to all changes in this revision

Viewing changes to account_payment_direct_debit/workflow/account_invoice.xml

  • Committer: Ignacio Ibeas - Acysos S.L.
  • Date: 2014-01-25 13:30:35 UTC
  • Revision ID: ignacio@acysos.com-20140125133035-46kipms7z97u825v
[ADD] SEPA modules ported from Banking Addons to Account Payment Extension

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
    <data>
 
4
        <record id="act_debit_denied" model="workflow.activity">
 
5
            <field name="wkf_id" ref="account.wkf"/>
 
6
            <field name="name">debit_denied</field>
 
7
            <field name="action">action_debit_denied()</field>
 
8
            <field name="kind">function</field>
 
9
        </record>
 
10
       <record id="paid_to_debit_denied" model="workflow.transition">
 
11
            <!-- 
 
12
                 Set an invoice to state debit denied, either manually
 
13
                 or by confirming a bank statement line that constitutes
 
14
                 a fatal storno
 
15
            -->
 
16
            <field name="act_from" ref="account.act_paid"/>
 
17
            <field name="act_to" ref="act_debit_denied"/>
 
18
            <field name="signal">invoice_debit_denied</field>
 
19
        </record>
 
20
       <record id="open_test_to_debit_denied" model="workflow.transition">
 
21
            <!-- 
 
22
                 A storno leads to unreconciling the move line, which
 
23
                 reopens the invoice. We need to allow a transition from
 
24
                 this state to the debit denied state if the storno is fatal.
 
25
            -->
 
26
            <field name="act_from" ref="account.act_open_test"/>
 
27
            <field name="act_to" ref="act_debit_denied"/>
 
28
            <field name="signal">invoice_debit_denied</field>
 
29
        </record>
 
30
       <record id="debit_denied_to_paid" model="workflow.transition">
 
31
            <!-- 
 
32
                 Cancel a bank statement line that constitutes a fatal
 
33
                 storno
 
34
            -->
 
35
            <field name="act_from" ref="act_debit_denied"/>
 
36
            <field name="act_to" ref="account.act_paid"/>
 
37
            <field name="condition">test_undo_debit_denied()</field>
 
38
            <field name="signal">undo_debit_denied</field>
 
39
        </record>
 
40
        <record id="debit_denied_to_open" model="workflow.transition">
 
41
            <!-- 
 
42
                 Allow the user to manually reset a debit denied status
 
43
                 on a paid invoice (but only after manually unreconciling
 
44
                 the invoice)
 
45
            -->
 
46
            <field name="act_from" ref="act_debit_denied"/>
 
47
            <field name="act_to" ref="account.act_open_test"/>
 
48
            <field name="signal">open_test</field>
 
49
        </record>
 
50
    </data>
 
51
</openerp>