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

« back to all changes in this revision

Viewing changes to account_override/wizard/account_chart.xml

  • Committer: Quentin THEURET
  • Date: 2016-03-04 12:15:00 UTC
  • Revision ID: qt@tempo-consulting.fr-20160304121500-u2ay8zrf83ih9fu3
US-826 [IMP] Change the way to check if products is not consistent on add multiple line wizard

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
            <field name="type">form</field>
9
9
            <field name="inherit_id" ref="account.view_account_chart"/>
10
10
            <field name="arch" type="xml">
11
 
                <field name="period_to" position="after">
12
 
                    <separator string="Inactive accounts" colspan="4"/>
 
11
                <data>
 
12
                    <xpath expr="/form//field[@name='target_move']" position="before">
 
13
                        <newline/>
 
14
                    </xpath>
 
15
                    <xpath expr="/form//field[@name='period_from']" position="replace">
 
16
                        <field name="period_from"/>
 
17
                        <newline/>
 
18
                    </xpath>
 
19
                    <xpath expr="/form/group[2]" position="before">
 
20
                        <separator string="Inactive accounts" colspan="4"/>
 
21
                        <field name="show_inactive"/>
 
22
                        <newline/>
 
23
                        <separator string="Currency" colspan="4"/>
 
24
                        <field name="currency_id"/>
 
25
                        <!-- Desactivate output currency functionnality until further notice
 
26
                        <newline/>
 
27
                        <field name="output_currency_id"/>
 
28
                        -->
 
29
                    </xpath>
 
30
                    <xpath expr="/form/group[2]/button[@string='Open Charts']" position="attributes">
 
31
                        <attribute name="string">Show Balances</attribute>
 
32
                    </xpath>
 
33
                    <xpath expr="/form/group[2]" position="after">
 
34
                        <group colspan="4" col="2">
 
35
                            <label string="" colspan="1"/>
 
36
                            <button icon="gtk-print" string="Export" name="button_export" type="object" colspan="1"/>
 
37
                        </group>
 
38
                    </xpath>
 
39
                </data>
 
40
            </field>
 
41
        </record>
 
42
 
 
43
    <!--
 
44
         Redefine "Chart of Accounts" to "Balance by account" (actions and menus)
 
45
    -->
 
46
 
 
47
        <record id="account.action_account_chart" model="ir.actions.act_window">
 
48
          <field name="name">Balance by account</field>
 
49
          <field name="res_model">account.chart</field>
 
50
          <field name="view_type">form</field>
 
51
          <field name="view_mode">tree,form</field>
 
52
          <field name="view_id" ref="view_account_chart_activable"/>
 
53
          <field name="target">new</field>
 
54
          <field name="help">Display your company chart of accounts per fiscal year and filter by period. Have a complete tree view of all journal items per account code by clicking on an account.</field>
 
55
        </record>
 
56
 
 
57
        <menuitem icon="STOCK_INDENT" action="account.action_account_chart"
 
58
              id="account.menu_action_account_tree2"
 
59
                  parent="account.final_accounting_reports" string="Balance by account" sequence="100"/>
 
60
 
 
61
    <!--
 
62
      Renew account move line tree when you come from balance by account and chart of account wizards
 
63
    -->
 
64
        <record id="inherit_view_move_line_tree" model="ir.ui.view">
 
65
          <field name="name">inherit.move.line.tree</field>
 
66
          <field name="model">account.move.line</field>
 
67
          <field name="type">tree</field>
 
68
          <field name="inherit_id" ref="account.view_move_line_tree"/>
 
69
          <field name="priority" eval="6"/>
 
70
          <field name="arch" type="xml">
 
71
            <data>
 
72
              <!-- Delete field that are not in the right order -->
 
73
              <xpath expr="/tree/field[@name='move_id']" position="replace">
 
74
                <!-- Nothing -->
 
75
              </xpath>
 
76
              <xpath expr="/tree/field[@name='ref']" position="replace">
 
77
                <!-- Nothing -->
 
78
              </xpath>
 
79
              <xpath expr="/tree/field[@name='invoice']" position="replace">
 
80
                <!-- Nothing -->
 
81
              </xpath>
 
82
              <xpath expr="/tree/field[@name='name']" position="replace">
 
83
                <!-- Nothing -->
 
84
              </xpath>
 
85
              <xpath expr="/tree/field[@name='partner_id']" position="replace">
 
86
                <!-- Nothing -->
 
87
              </xpath>
 
88
              <xpath expr="/tree/field[@name='journal_id']" position="replace">
 
89
                <!-- Nothing -->
 
90
              </xpath>
 
91
              <xpath expr="/tree/field[@name='debit']" position="replace">
 
92
                <!-- Nothing -->
 
93
              </xpath>
 
94
              <xpath expr="/tree/field[@name='credit']" position="replace">
 
95
                <!-- Nothing -->
 
96
              </xpath>
 
97
              <xpath expr="/tree/field[@name='account_tax_id']" position="replace">
 
98
                <!-- Nothing -->
 
99
              </xpath>
 
100
              <xpath expr="/tree/field[@name='analytic_account_id']" position="replace">
 
101
                <!-- Nothing -->
 
102
              </xpath>
 
103
              <xpath expr="/tree/field[@name='amount_currency']" position="replace">
 
104
                <!-- Nothing -->
 
105
              </xpath>
 
106
              <!-- Then reorder -->
 
107
              <xpath expr="/tree/field[@name='date']" position="before">
 
108
                <field name="journal_id"/>
 
109
                <field name="move_id"/>
 
110
                <field name="name"/>
 
111
                <field name="ref"/>
 
112
                <field name="document_date"/>
 
113
              </xpath>
 
114
              <xpath expr="/tree/field[@name='account_id']" position="after">
 
115
                <field name="partner_txt"/>
 
116
              </xpath>
 
117
              <xpath expr="/tree/field[@name='currency_id']" position="before">
 
118
                <field name="debit_currency"/>
 
119
                <field name="credit_currency"/>
 
120
              </xpath>
 
121
              <xpath expr="/tree/field[@name='currency_id']" position="after">
 
122
                <field name="debit"/>
 
123
                <field name="credit"/>
 
124
                <field name="functional_currency_id"/>
 
125
              </xpath>
 
126
              <!-- Finally add missing ones -->
 
127
              <xpath expr="/tree/field[@name='reconcile_partial_id']" position="replace">
 
128
                <field name="output_amount_debit"/>
 
129
                <field name="output_amount_credit"/>
 
130
                <field name="output_currency"/>
 
131
              </xpath>
 
132
            </data>
 
133
          </field>
 
134
        </record>
 
135
 
 
136
    <!-- Change name of result to "Balance by account" instead of "Chart of Accounts" -->
 
137
        <record id="account.action_account_tree" model="ir.actions.act_window">
 
138
          <field name="name">Balance by account</field>
 
139
          <field name="res_model">account.account</field>
 
140
          <field name="view_type">tree</field>
 
141
          <field name="view_id" ref="account.view_account_tree"/>
 
142
          <field name="domain">[('parent_id','=',False)]</field>
 
143
        </record>
 
144
 
 
145
    <!--
 
146
      New Chart of Accounts menu/action/view
 
147
    -->
 
148
 
 
149
        <record id="view_account_coa" model="ir.ui.view">
 
150
            <field name="name">account.coa.form</field>
 
151
            <field name="model">account.coa</field>
 
152
            <field name="type">form</field>
 
153
            <field name="arch" type="xml">
 
154
                <form string="Chart of Accounts">
 
155
                    <field name="fiscalyear"/>
13
156
                    <field name="show_inactive"/>
14
 
                </field>
 
157
                    <group colspan="4" col="6">
 
158
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
 
159
                        <button icon="terp-gtk-go-back-rtl" string="Open Charts" name="button_validate" type="object"/>
 
160
                    </group>
 
161
                </form>
15
162
            </field>
16
163
        </record>
17
 
        
 
164
 
 
165
        <record id="action_account_coa" model="ir.actions.act_window">
 
166
            <field name="name">Chart of Accounts</field>
 
167
            <field name="res_model">account.coa</field>
 
168
            <field name="view_type">form</field>
 
169
            <field name="view_mode">tree,form</field>
 
170
            <field name="view_id" ref="view_account_coa"/>
 
171
            <field name="target">new</field>
 
172
            <field name="help">Display your company chart of accounts per fiscal year and filter by period. Have a complete tree view fo all journal items per account code by clicking on an account.</field>
 
173
        </record>
 
174
 
 
175
        <menuitem icon="STOCK_INDENT" action="action_account_coa"
 
176
          id="menu_action_account_coa_tree2"
 
177
          parent="account.menu_finance_charts" sequence="30"/>
 
178
 
18
179
    </data>
19
180
</openerp>