1
<?xml version="1.0" encoding="utf-8"?>
5
<!-- Add reversal_origin field on account_analytic_line form -->
6
<record id="inherit_view_account_analytic_line_form" model="ir.ui.view">
7
<field name="name">account.analytic.line.form</field>
8
<field name="model">account.analytic.line</field>
9
<field name="type">form</field>
10
<field name="inherit_id" ref="account.view_account_analytic_line_form"/>
11
<field name="priority" eval="20"/>
12
<field name="arch" type="xml">
14
<xpath expr="/form/group[1]/field[@name='date']" position="after">
15
<field name="reversal_origin"/>
16
<field name="invoice_line_id"/>
22
<!-- Add some field to account_analytic_line tree -->
23
<record id="inherit_view_account_analytic_line_tree" model="ir.ui.view">
24
<field name="name">account.analytic.line.tree</field>
25
<field name="model">account.analytic.line</field>
26
<field name="type">tree</field>
27
<field name="inherit_id" ref="account.view_account_analytic_line_tree"/>
28
<field name="priority" eval="10"/>
29
<field name="arch" type="xml">
31
<xpath expr="/tree/field[@name='name']" position='after'>
32
<field name="reversal_origin"/>
34
<xpath expr="/tree/field[@name='amount']" position='after'>
35
<field name="amount_currency"/>
36
<field name="currency_id"/>
38
<xpath expr="/tree/field[@name='general_account_id']" position='after'>
39
<field name="invoice_line_id"/>
45
<!-- Add a filter to search engagement journal lines -->
46
<record id="inherit_view_account_analytic_line_filter" model="ir.ui.view">
47
<field name="name">account.analytic.line.select</field>
48
<field name="model">account.analytic.line</field>
49
<field name="type">search</field>
50
<field name="inherit_id" ref="account.view_account_analytic_line_filter"/>
51
<field name="arch" type="xml">
52
<xpath expr="/search/group[1]/filter[@name='purchases']" position='after'>
53
<filter name="engagements" string="Engagements" domain="[('journal_id.type','=','engagement')]" icon="terp-folder-violet" help="Analytic Journal Items related to an engagement journal."/>