~julie-w/unifield-wm/UTP-758

« back to all changes in this revision

Viewing changes to account_period_closing_level/account_period_closing_level_view.xml

  • Committer: jf
  • Date: 2016-01-25 14:14:07 UTC
  • mfrom: (2703.20.59 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20160125141407-vgfz8lrdvvgq0zip
US-822 [IMP] Year End Closure functionnality
lp:~unifield-team/unifield-wm/us-822

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
                    <field name="end_journal_period_id" position="replace"/>
15
15
 
16
16
                    <xpath expr="//group[2]" position="after">
17
 
                        <field name="is_closable" invisible="1" />
18
 
                        <group
19
 
                            attrs="{'invisible': [('is_closable', '=', False)]}">
20
 
                            <button name="uf_close_fy" type="object"
21
 
                                string="Close (HQ)" icon="gtk-go-forward"/>
 
17
                        <field name="is_mission_closable" invisible="1" />
 
18
                        <group attrs="{'invisible': [('is_mission_closable', '=', False)]}">
 
19
                            <button name="btn_mission_close" type="object"
 
20
                                string="Mission close the fiscal year"
 
21
                                icon="gtk-go-forward"/>
 
22
                        </group>
 
23
                        <field name="is_hq_closable" invisible="1" />
 
24
                        <group attrs="{'invisible': [('is_hq_closable', '=', False)]}">
 
25
                            <button name="btn_hq_close" type="object"
 
26
                                string="HQ close the fiscal year"
 
27
                                icon="gtk-go-forward"/>
 
28
                        </group>
 
29
                        <newline />
 
30
                        <field name="can_reopen_mission" invisible="1" />
 
31
                        <group colspan="4" col="2"
 
32
                            attrs="{'invisible': [('can_reopen_mission', '=', False)]}">
 
33
                            <label string="" colspan="1"/>
 
34
                            <button name="btn_mission_reopen"
 
35
                                groups="sd.base_group_erp_manager"
 
36
                                string="Reopen FY" type="object" icon="gtk-go-forward" colspan="1"
 
37
                                confirm="Are you sure you want to reopen this FY ?"/>
22
38
                        </group>
23
39
                    </xpath>
24
40
                </data>
35
51
                    <form position="attributes">
36
52
                        <attribute name="hide_duplicate_button">1</attribute>
37
53
                        <attribute name="hide_new_button">1</attribute>
 
54
                        <attribute name="hide_delete_button">is_system == True</attribute>
 
55
                        <attribute name="noteditable">is_system == True</attribute>
38
56
                    </form>
39
 
                    <field name="code" position="replace"/>
 
57
                    <field name="code" position="replace">
 
58
                        <field name="is_system"/>
 
59
                    </field>
40
60
                    <field name="company_id" position="replace"/>
41
61
                    <button name="action_draft" position="replace">
42
62
                        <newline/>
169
189
            <field name="inherit_id" ref="account.view_account_period_tree"/>
170
190
            <field name="arch" type="xml">
171
191
                <tree string="Period" position="replace">
172
 
                    <tree colors="blue:state in ('created');gray:state in ('done')" hide_new_button="1" string="Period">
 
192
                    <tree colors="blue:state in ('created');gray:is_system or state in ('done')" hide_new_button="1" string="Period">
173
193
                        <field name="name"/>
174
194
                        <field name="date_start"/>
175
195
                        <field name="date_stop"/>
176
196
                        <field name="special"/>
177
197
                        <field name="state"/>
178
198
                        <field name="number" invisible="1"/>
 
199
                        <field name="is_system" invisible="1"/>
179
200
                        <button name="action_reopen_field" states="field-closed" confirm="Are you sure you want to re-open this period?" string="Re-open period (Field)" type="object" icon="gtk-go-back" colspan="1"/>
180
201
                        <button name="action_open_period" states="created" confirm="Are you sure you want to open this period?" string="Open period" type="object" icon="gtk-go-forward" colspan="1"/>
181
202
                    </tree>
187
208
            <field name="name">Close a Period</field>
188
209
            <field name="res_model">account.period</field>
189
210
            <field name="inherit_id" ref="account.action_account_period_tree"/>
190
 
            <field name="domain">[('state','!=','created')]</field>
 
211
            <field name="domain">[('state','!=','created'), ('is_system', '=', False)]</field>
191
212
            <field name="context">{'search_default_draft': 1}</field>
192
213
            <field name="help">A period is a fiscal period of time during which accounting entries should be recorded for accounting related activities. Monthly period is the norm but depending on your countries or company needs, you could also have quarterly periods. Closing a period will make it impossible to record new accounting entries, all new entries should then be made on the following open period. Close a period when you do not want to record new entries and want to lock this period for tax related calculation.</field>
193
214
        </record>