[IMP] hr_payroll:added default company_id on salary rules

bzr revid: mtr@mtr-20110307094710-px4r3q1ik57h536k
This commit is contained in:
mtr 2011-03-07 15:17:10 +05:30
parent a40185970f
commit e85b5701ee
2 changed files with 4 additions and 1 deletions

View File

@ -1261,6 +1261,9 @@ class hr_salary_rule(osv.osv):
'sequence': 5,
'appears_on_payslip': True,
'active': True,
'company_id': lambda self, cr, uid, context: \
self.pool.get('res.users').browse(cr, uid, uid,
context=context).company_id.id,
}
hr_salary_rule()

View File

@ -597,7 +597,7 @@
<field name="code" select="1"/>
<field name="active"/>
<field name="sequence" />
<field name="company_id" widget="selection"/>
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
<field name="appears_on_payslip"/>
</group>
<group col="6" colspan="6">