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
|
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="view_model_purchase_form" model="ir.ui.view">
<field name="name">account.model.form</field>
<field name="model">account.model</field>
<field name="type">form</field>
<field name="inherit_id" ref="account.view_model_form"/>
<field name="arch" type="xml">
<field name="journal_id" position="replace">
<field name="journal_id" domain="[('type','=','purchase')]"/>
</field>
</field>
</record>
<record id="view_model_purchase_search" model="ir.ui.view">
<field name="name">account.model.search</field>
<field name="model">account.model</field>
<field name="type">search</field>
<field name="inherit_id" ref="account.view_model_search"/>
<field name="arch" type="xml">
<data>
<xpath expr="//filter[@string='Sale']" position="replace"/>
<xpath expr="//filter[@string='Purchase']" position="replace"/>
</data>
</field>
</record>
<record id="view_account_journal_purchase_search" model="ir.ui.view">
<field name="name">account.journal.search</field>
<field name="model">account.journal</field>
<field name="type">search</field>
<field name="inherit_id" ref="account.view_account_journal_search"/>
<field name="arch" type="xml">
<data>
<xpath expr="//filter[@string='Sale']" position="replace"/>
<xpath expr="//filter[@string='Purchase']" position="replace"/>
<xpath expr="//filter[@string='Liquidity']" position="replace"/>
<xpath expr="//filter[@string='Others']" position="replace"/>
<xpath expr="//group[2]" position="replace"/>
</data>
</field>
</record>
<record id="view_model_line_distrib_tree" model="ir.ui.view">
<field name="name">account.model.line.distrib.tree</field>
<field name="model">account.model.line</field>
<field name="type">tree</field>
<field name="inherit_id" ref="account.view_model_line_tree"/>
<field name="arch" type="xml">
<field name="analytic_account_id" position="replace">
<field name="account_user_type_code" invisible="1"/>
<button name="button_analytic_distribution" type="object" icon="terp-stock_symbol-selection" string="Analytic Distribution" attrs="{'invisible': [('account_user_type_code', '!=', 'expense')]}"/>
</field>
</field>
</record>
</data>
</openerp>
|