[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:
psi (Open ERP) 2011-06-30 14:45:33 +05:30
parent 0600e1334b
commit 7890f2f080
2 changed files with 2 additions and 2 deletions

View File

@ -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'),

View File

@ -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"/>