[FIX] hr_payroll: fixes YML trace back as struct_id field was required on hr.contract object
bzr revid: psi@tinyerp.co.in-20110630091533-al5ei2f202aw5q7a
This commit is contained in:
parent
0600e1334b
commit
7890f2f080
|
@ -119,7 +119,7 @@ class hr_contract(osv.osv):
|
|||
_inherit = 'hr.contract'
|
||||
_description = 'Employee Contract'
|
||||
_columns = {
|
||||
'struct_id': fields.many2one('hr.payroll.structure', 'Salary Structure', required=True),
|
||||
'struct_id': fields.many2one('hr.payroll.structure', 'Salary Structure'),
|
||||
'schedule_pay': fields.selection([
|
||||
('monthly', 'Monthly'),
|
||||
('quarterly', 'Quarterly'),
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="/form/notebook/page/group/field[@name='advantages']" position="before">
|
||||
<field name="struct_id" select="1"/>
|
||||
<field name="struct_id" required="1"/>
|
||||
</xpath>
|
||||
<xpath expr="/form/notebook/page/group/field[@name='working_hours']" position="after">
|
||||
<field name="schedule_pay"/>
|
||||
|
|
Loading…
Reference in New Issue