[IMP] hr_payroll:added default company_id on salary rules
bzr revid: mtr@mtr-20110307094710-px4r3q1ik57h536k
This commit is contained in:
parent
a40185970f
commit
e85b5701ee
|
@ -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()
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue