~unifield-team/unifield-wm/us-826

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version="1.0"?>
<openerp>
    <data>

        <!--
        Actions
        -->

        <!-- Display Register lines from given Register -->
        <record id="action_register_lines_search" model="ir.actions.server">
            <field name="name">Register Lines</field>
            <field name="model_id" ref="model_account_bank_statement"/>
            <field name="state">code</field>
            <field name="code">action = obj.get_register_lines(context=context)</field>
        </record>

        <record id="ir_open_register_lines_search" model="ir.values">
            <field name="key2">client_action_multi</field>
            <field name="model">account.bank.statement</field>
            <field name="name">Register Lines</field>
            <field eval="'ir.actions.server,%d'%action_register_lines_search" name="value"/>
            <field eval="True" name="object"/>
        </record>

        <!-- Display FP Analytic Lines attached to Register Lines from given Register -->
        <record id="action_analytic_register_lines_search" model="ir.actions.server">
            <field name="name">Analytic Lines (FP)</field>
            <field name="model_id" ref="model_account_bank_statement"/>
            <field name="state">code</field>
            <field name="code">action = obj.get_analytic_register_lines(context=context)</field>
        </record>

        <record id="ir_open_analytic_register_lines_search" model="ir.values">
            <field name="key2">client_action_multi</field>
            <field name="model">account.bank.statement</field>
            <field name="name">Analytic Lines (FP)</field>
            <field eval="'ir.actions.server,%d'%action_analytic_register_lines_search" name="value"/>
            <field eval="True" name="object"/>
        </record>

        <!-- Display Free1 Analytic Lines attached to Register Lines from given Register -->
        <record id="action_analytic_register_free1_lines_search" model="ir.actions.server">
            <field name="name">Analytic Lines (Free 1)</field>
            <field name="model_id" ref="model_account_bank_statement"/>
            <field name="state">code</field>
            <field name="code">action = obj.get_analytic_register_free1_lines(context=context)</field>
        </record>

        <record id="ir_open_analytic_register_free1_lines_search" model="ir.values">
            <field name="key2">client_action_multi</field>
            <field name="model">account.bank.statement</field>
            <field name="name">Analytic Lines (Free 1)</field>
            <field eval="'ir.actions.server,%d'%action_analytic_register_free1_lines_search" name="value"/>
            <field eval="True" name="object"/>
        </record>

        <!-- Display Free2 Analytic Lines attached to Register Lines from given Register -->
        <record id="action_analytic_register_free2_lines_search" model="ir.actions.server">
            <field name="name">Analytic Lines (Free 2)</field>
            <field name="model_id" ref="model_account_bank_statement"/>
            <field name="state">code</field>
            <field name="code">action = obj.get_analytic_register_free2_lines(context=context)</field>
        </record>

        <record id="ir_open_analytic_register_free2_lines_search" model="ir.values">
            <field name="key2">client_action_multi</field>
            <field name="model">account.bank.statement</field>
            <field name="name">Analytic Lines (Free 2)</field>
            <field eval="'ir.actions.server,%d'%action_analytic_register_free2_lines_search" name="value"/>
            <field eval="True" name="object"/>
        </record>

        <!-- 
            Account bank statement lines
        -->

        <!-- Return to the register linked to the given line -->
        <record id="action_return_to_register" model="ir.actions.server">
            <field name="name">Return to register</field>
            <field name="model_id" ref="model_account_bank_statement_line"/>
            <field name="state">code</field>
            <field name="code">action = obj.return_to_register(context=context)</field>
        </record>

        <record id="ir_open_return_to_register" model="ir.values">
            <field name="key2">client_action_multi</field>
            <field name="model">account.bank.statement.line</field>
            <field name="name">Return to register</field>
            <field eval="'ir.actions.server,%d'%action_return_to_register" name="value"/>
            <field eval="True" name="object"/>
        </record>

        <!-- Display all Analytic Lines attached to given Register Lines -->
        <record id="action_analytic_register_lines" model="ir.actions.server">
            <field name="name">Analytic Lines</field>
            <field name="model_id" ref="model_account_bank_statement_line"/>
            <field name="state">code</field>
            <field name="code">action = obj.show_analytic_lines(context=context)</field>
        </record>

        <record id="ir_open_analytic_register_lines" model="ir.values">
            <field name="key2">client_action_multi</field>
            <field name="model">account.bank.statement.line</field>
            <field name="name">Analytic Lines</field>
            <field eval="'ir.actions.server,%d'%action_analytic_register_lines" name="value"/>
            <field eval="True" name="object"/>
        </record>

    </data>
</openerp>