forked from OCA/hr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhr_payslip_view.xml
35 lines (33 loc) · 1.36 KB
/
hr_payslip_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
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_hr_payslip_form" model="ir.ui.view">
<field name="name">hr.payslip.form</field>
<field name="model">hr.payslip</field>
<field name="inherit_id" ref="hr_payroll.view_hr_payslip_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='worked_days_line_ids']//field[@name='name']" position="before">
<field
name="date_from"
attrs="{'required': [('number_of_hours', '>', 0)]}"
/>
<field
name="date_to"
attrs="{'required': [('number_of_hours', '>', 0)]}"
/>
</xpath>
<xpath expr="//field[@name='worked_days_line_ids']//field[@name='number_of_hours']" position="after">
<field
name="hourly_rate"
attrs="{'required': [('number_of_hours', '>', 0)]}"
/>
<field
name="rate"
attrs="{'required': [('number_of_hours', '>', 0)]}"
/>
<field name="total"/>
</xpath>
</field>
</record>
</data>
</openerp>