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

584.6.1 by Matthieu Dietrich
UF-687: [IMP] added analytic distribution and period validation to recurring entries
1
<?xml version="1.0" encoding="UTF-8"?>
2
<openerp>
3
    <data>
678.1.1 by duy.vo at msf
[IMP] UF-907: Show only purchase journals
4
    
5
        <record id="view_model_purchase_form" model="ir.ui.view">
6
            <field name="name">account.model.form</field>
7
            <field name="model">account.model</field>
8
            <field name="type">form</field>
9
            <field name="inherit_id" ref="account.view_model_form"/>
10
            <field name="arch" type="xml">
11
                 <field name="journal_id" position="replace">
12
                 	<field name="journal_id" domain="[('type','=','purchase')]"/>
13
                 </field>
14
            </field>
15
        </record>
16
    
17
        <record id="view_model_purchase_search" model="ir.ui.view">
18
            <field name="name">account.model.search</field>
19
            <field name="model">account.model</field>
20
            <field name="type">search</field>
21
            <field name="inherit_id" ref="account.view_model_search"/>
22
            <field name="arch" type="xml">
23
            	<data>
24
            		<xpath expr="//filter[@string='Sale']" position="replace"/>
25
            		<xpath expr="//filter[@string='Purchase']" position="replace"/>
26
            	</data>
27
            </field>
28
        </record>
29
30
        <record id="view_account_journal_purchase_search" model="ir.ui.view">
31
            <field name="name">account.journal.search</field>
32
            <field name="model">account.journal</field>
33
            <field name="type">search</field>
34
            <field name="inherit_id" ref="account.view_account_journal_search"/>
35
            <field name="arch" type="xml">
36
            	<data>
37
            		<xpath expr="//filter[@string='Sale']" position="replace"/>
38
            		<xpath expr="//filter[@string='Purchase']" position="replace"/>
39
            		<xpath expr="//filter[@string='Liquidity']" position="replace"/>
40
            		<xpath expr="//filter[@string='Others']" position="replace"/>
41
            		<xpath expr="//group[2]" position="replace"/>
42
            	</data>
43
            </field>
44
        </record>
45
    
584.6.1 by Matthieu Dietrich
UF-687: [IMP] added analytic distribution and period validation to recurring entries
46
        <record id="view_model_line_distrib_tree" model="ir.ui.view">
47
            <field name="name">account.model.line.distrib.tree</field>
48
            <field name="model">account.model.line</field>
49
            <field name="type">tree</field>
50
            <field name="inherit_id" ref="account.view_model_line_tree"/>
51
            <field name="arch" type="xml">
52
                <field name="analytic_account_id" position="replace">
53
                    <field name="account_user_type_code" invisible="1"/>
54
                    <button name="button_analytic_distribution" type="object" icon="terp-stock_symbol-selection" string="Analytic Distribution" attrs="{'invisible': [('account_user_type_code', '!=', 'expense')]}"/>
55
                </field>
56
            </field>
57
        </record>
678.1.1 by duy.vo at msf
[IMP] UF-907: Show only purchase journals
58
        
584.6.1 by Matthieu Dietrich
UF-687: [IMP] added analytic distribution and period validation to recurring entries
59
    </data>
613 by jf
UF-671 [MERGE] Recurring entries - deferred expenses
60
</openerp>