-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhr_expense_view.xml
26 lines (23 loc) · 929 Bytes
/
hr_expense_view.xml
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
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Akretion (http://www.akretion.com)
@author: Alexis de Lattre <[email protected]>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<record id="view_expenses_form" model="ir.ui.view">
<field name="name">expense.analytic.default.expense.form</field>
<field name="model">hr.expense.expense</field>
<field name="inherit_id" ref="hr_expense.view_expenses_form"/>
<field name="arch" type="xml">
<field name="department_id" position="after">
<field name="default_analytic_account_id"/>
</field>
<xpath expr="//field[@name='line_ids']" position="attributes">
<attribute name="context">{'currency_id': currency_id, 'default_analytic_account': default_analytic_account_id or context.get('analytic_account')}</attribute>
</xpath>
</field>
</record>
</data>
</openerp>