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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
<?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">
<form string="Journal Entry Model" position="replace">
<form string="Journal Entry Model">
<group col="6" colspan="4">
<field name="name"/>
<field name="journal_id" domain="[('type','=','purchase'),('is_current_instance','=',True)]"/>
<field name="currency_id"/>
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-check" context="context" colspan="6" attrs="{'invisible': [('analytic_distribution_id', '=', False)]}"/>
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-emblem-important" context="context" colspan="6" attrs="{'invisible': [('analytic_distribution_id', '!=', False)]}"/>
<field name="analytic_distribution_id" invisible="1"/>
<field colspan="6" nolabel="1" name="lines_id" widget="one2many_list"/>
</group>
</form>
</form>
</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="account.view_model_line_tree" model="ir.ui.view">
<field name="name">account.model.line.tree</field>
<field name="model">account.model.line</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Journal Entry Model Line" editable="bottom">
<field name="sequence" readonly="1"/>
<field name="name"/>
<field name="account_id" domain="[('type', '!=', 'view')]"/>
<button name="button_analytic_distribution" string="Analytical Distribution" type="object" icon="terp-stock_symbol-selection" context="context" attrs="{'invisible': [('is_allocatable', '=', False)]}"/>
<field name="analytic_distribution_state_recap"/>
<field name="have_analytic_distribution_from_header" invisible="1"/>
<field name="analytic_distribution_state" invisible="1"/>
<field name="is_allocatable" invisible="1"/>
<field name="partner_id"/>
<field name="debit"/>
<field name="credit"/>
</tree>
</field>
</record>
<record id="view_subscription_form" model="ir.ui.view">
<field name="name">account.subscription.form</field>
<field name="model">account.subscription</field>
<field name="type">form</field>
<field name="inherit_id" ref="account.view_subscription_form"/>
<field name="arch" type="xml">
<data>
<separator string="Valid Up to" position="replace">
<separator string="Frequency" colspan="4"/>
</separator>
</data>
</field>
</record>
<record id="view_subscription_line_tree" model="ir.ui.view">
<field name="name">account.subscription.line.tree</field>
<field name="model">account.subscription.line</field>
<field name="type">tree</field>
<field name="inherit_id" ref="account.view_subscription_line_tree"/>
<field name="arch" type="xml">
<tree string="Subscription lines" position="replace">
<tree string="Subscription lines" hide_new_button="1" hide_delete_button="1" noteditable="1">
<field name="date"/>
<field name="move_id"/>
</tree>
</tree>
</field>
</record>
<act_window
id="act_account_subscription_to_account_move_line_open"
name="Recurring Entries To Validate"
domain="[('move_id.state','=','draft'), ('is_recurring', '=', True)]"
res_model="account.move.line"
src_model="account.subscription"/>
<record id="account.validate_account_move_line_view" model="ir.ui.view">
<field name="name">Post Journal Entries</field>
<field name="model">validate.account.move.lines</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Post Journal Entries">
<separator string="Post Journal Entries" colspan="4"/>
<label string="All selected journal entries will be validated and posted. It means you won't be able to modify their accounting fields anymore." colspan="2"/>
<separator colspan="4"/>
<group colspan="4" col="6">
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
<button icon="terp-camera_test" string="Approve" name="validate_move_lines" type="object" default_focus="1"/>
</group>
</form>
</field>
</record>
</data>
</openerp>
|