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

« back to all changes in this revision

Viewing changes to account_override/account_view.xml

  • Committer: Quentin THEURET
  • Date: 2014-03-05 16:51:14 UTC
  • mto: (2004.1.33 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 2016.
  • Revision ID: qt@tempo-consulting.fr-20140305165114-m3n5p978sisi4n3f
REF-27 [FIX] Fix import of tools.translate

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
                <data>
15
15
                    <xpath expr="/tree/field[@name='name']" position="before">
16
16
                        <field name="line_number"/>
 
17
                        <field name="is_corrected" invisible="1"/>
 
18
                        <button name="button_open_analytic_lines" string="Have been corrected" type="object" icon="terp-mail-" attrs="{'invisible': [('is_corrected', '=', False)]}"/>
17
19
                    </xpath>
18
20
                </data>
19
21
            </field>
30
32
            <field name="priority">20</field>
31
33
            <field name="arch" type="xml">
32
34
                <data>
 
35
                    <xpath expr="/form/notebook/page[@string='Invoice']/field[@name='account_id']" position="attributes">
 
36
                        <attribute name="domain">[('company_id', '=', company_id), ('restricted_area', '=', 'in_invoice')]</attribute>
 
37
                    </xpath>
33
38
                    <xpath expr="//tree[@string='Invoice lines']/field[@name='product_id']" position="before">
34
39
                        <field name="line_number"/>
35
40
                    </xpath>
44
49
            </field>
45
50
        </record>
46
51
 
 
52
    <!-- Change account_id domain -->
 
53
        <record id="invoice_line_form3" model="ir.ui.view">
 
54
            <field name="name">account.invoice.line.form</field>
 
55
            <field name="model">account.invoice.line</field>
 
56
            <field name="type">form</field>
 
57
            <field name="priority" eval="20"/>
 
58
            <field name="inherit_id" ref="account.view_invoice_line_form"/>
 
59
            <field name="arch" type="xml">
 
60
              <xpath expr="//field[@name='account_id']" position="attributes">
 
61
                  <attribute name="domain">[('company_id', '=', parent.company_id), ('journal_id', '=', parent.journal_id), ('restricted_area', '=', 'invoice_lines')]</attribute>
 
62
              </xpath>
 
63
            </field>
 
64
        </record>
 
65
 
 
66
 
47
67
    <!-- Account View -->
48
68
        <record id="inherit_view_account_tree" model="ir.ui.view">
49
69
            <field name="name">inherit.view.account.tree</field>
56
76
                <xpath expr="//field[@name='type']" position="replace">
57
77
                </xpath>
58
78
                <xpath expr="//field[@name='user_type']" position="after">
59
 
                    <field name="type"/>
60
 
                    <field name="type_for_register"/>
 
79
                    <field name="type" invisible="1"/>
 
80
                    <field name="type_for_register" invisible="1"/>
61
81
                    <field name="accrual_account" invisible="1"/>
62
82
                </xpath>
63
83
            </field>
110
130
            <field name="inherit_id" ref="account.view_move_form"/>
111
131
            <field name="arch" type="xml">
112
132
                <form string="Journal Entries" position="replace">
113
 
                    <form string="Journal Entries" hide_duplicate_button="1" hide_delete_button="1">
 
133
                    <form string="Journal Entries" hide_delete_button="1">
114
134
                        <group colspan="4" col="6">
115
135
                            <field name="journal_id" on_change="onchange_journal_id(journal_id)" attrs="{'readonly': ['|', ('status', '=', 'sys'), ('state', '=', 'posted')]}"/>
116
136
                            <field name="name" readonly="1"/>
128
148
                                        <button name="button_duplicate" string="Duplicate" type="object" icon="gtk-copy" />
129
149
                                        <field name="name"/>
130
150
                                        <field name="ref"/>
131
 
                                        <field name="account_id"/>
 
151
                                        <field name="account_id" domain="[('restricted_area', '=', 'account_move_lines')]"/>
132
152
                                        <field name="partner_id" invisible="1"/>
133
153
                                        <field name="debit_currency" sum="Total Booking Debit" string="Book. Debit"/>
134
154
                                        <field name="credit_currency" sum="Total Booking Credit" string="Book. Credit"/>
216
236
            <field name="priority" eval="10"/>
217
237
            <field name="arch" type="xml">
218
238
                <data>
 
239
                    <xpath expr="//field[@name='balance']" position="replace" /><!-- UTP-31: del balance: moving from extended filter to filter -->
219
240
                    <xpath expr="//filter[@string='Unbalanced']" position="replace">
220
241
                        <filter icon="terp-document-new" string="Invalid" domain="[('state','=','draft')]" help="Invalid Journal Items"/>
221
242
                      </xpath>
243
264
                        <field name="journal_id" context="{'journal_id':self, 'visible_id': self, 'normal_view':False}"/>
244
265
                        <field name="journal_type"/>
245
266
                    </xpath>
 
267
                    <xpath expr="//field[@name='period_id']" position="replace">
 
268
                        <field name="period_id" context="{'period_id':self, 'search_default_period_id':self}"/>
 
269
                        <newline />
 
270
                        <!-- UTP-31: balance: moving from extended filter to filter (after period_id) -->
 
271
                        <field name="balance" string="Debit/Credit Functional" select='1'/>
 
272
                        <field name="balance_currency" string="Debit/Credit Booking" select='1'/>
 
273
                    </xpath>
246
274
                </data>
247
275
            </field>
248
276
        </record>
261
289
 
262
290
    <!-- Delete Confirm Draft Invoices wizard from supplier invoices -->
263
291
    <delete id="account.action_account_invoice_confirm" model="ir.actions.act_window"/>
264
 
    
265
 
    
266
292
 
267
293
    <!-- Account View -->
268
294
        <record id="inherit_view_account_form" model="ir.ui.view">
272
298
            <field name='inherit_id' ref='account.view_account_form' />
273
299
            <field name="arch" type="xml">
274
300
                <xpath expr="//field[@name='user_type']" position="after">
275
 
                    <field name="is_settled_at_hq"/>
 
301
                    <field name="shrink_entries_for_hq"/>
276
302
                </xpath>
277
303
            </field>
278
304
        </record>
279
305
 
 
306
    <!-- UF-1715 -->
 
307
    <report id="account_partner_balance_tree_xls"
 
308
        auto="False" 
 
309
        menu="False"
 
310
        header="False"
 
311
        model="account.partner.balance.tree"
 
312
        name="account.partner.balance.tree_xls"
 
313
        file="account_override/report/account_partner_balance_tree_xls.mako"
 
314
        report_type="webkit" 
 
315
        string="Partner Balance"/>
 
316
 
 
317
    <record id="account.action_account_moves_all_a" model="ir.actions.act_window">
 
318
        <field name="context">{'search_default_posted': 1, 'target_filename_prefix': 'Journal Items'}</field>
 
319
    </record>
 
320
 
280
321
    </data>
281
322
</openerp>