blob: 1e4b258e275bcd6c14822ae7d98f10bc0929060e (
plain)
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
|
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<record id="view_move_form_inherit" model="ir.ui.view">
<field name="name">account.move.form.inherit</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<!-- <xpath expr="//page[@id='aml_tab']/field[@name='line_ids']" position="attributes">
<attribute name="attrs">{'readonly': [('refund_id','!=',False)]}</attribute>
</xpath> -->
<xpath expr="//field[@name='line_ids']/tree/field[@name='credit']" position="after">
<field name="date_maturity" optional="hide"/>
</xpath>
<xpath expr="//page[@id='aml_tab']/field[@name='line_ids']/tree/field[@name='currency_id']" position="before">
<field name="is_required" invisible="1"/>
</xpath>
<xpath expr="//page[@id='aml_tab']/field[@name='line_ids']/tree/field[@name='analytic_tag_ids']" position="attributes">
<attribute name="groups"/>
<attribute name="options">{'no_create': True}</attribute>
</xpath>
<xpath expr="//field[@name='line_ids']/tree/field[@name='partner_id']" position="attributes">
<attribute name="options">{'no_create': True, 'no_open': True}</attribute>
</xpath>
</field>
</record>
<record id="view_move_line_tree_grouped_partner_inherit" model="ir.ui.view">
<field name="name">account.move.line.tree.grouped.partner.inherit</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_tree_grouped"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='analytic_tag_ids']" position="replace">
<field name="analytic_tag_ids"
widget="many2many_tags"
optional="hide"/>
</xpath>
</field>
</record>
<record id="view_account_move_line_filter_inherit" model="ir.ui.view">
<field name="name">account.move.line.filter.inherit</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
<field name="arch" type="xml">
<xpath expr="//search" position="inside">
<field name="analytic_tag_ids"
string="Analytic Tag"
filter_domain="[('analytic_tag_ids.name','ilike', self)]"/>
</xpath>
<!-- <xpath expr="//search" position="inside">
<field name="analytic_account_id"
string="Analytic Account"
filter_domain="[('analytic_account_id.name','ilike', self)]"/>
</xpath>
<xpath expr="//search/group" position="inside">
<filter string="Analytic Tag"
name="group_by_analytic_tag"
domain="[]"
context="{'group_by': 'analytic_tag_ids'}"/>
</xpath>
<xpath expr="//search/group" position="inside">
<filter string="Analytic Account"
name="group_by_analytic_account"
domain="[]"
context="{'group_by': 'analytic_account_id'}"/>
</xpath> -->
</field>
</record>
</data>
<data>
<record id="action_gl_reconcile_server" model="ir.actions.server">
<field name="name">Reconcile Selected</field>
<field name="model_id" ref="account.model_account_move_line"/>
<field name="binding_model_id" ref="account.model_account_move_line"/>
<field name="binding_view_types">list</field>
<field name="state">code</field>
<field name="code">
action = records.action_gl_reconcile()
</field>
</record>
</data>
</odoo>
|