Commit 3b695570 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_payroll: there now exist more than one type of payroll record

parent 094bcf08
......@@ -26,8 +26,8 @@ else:
# and Organisation is taken into account
career_step = career_step_list[0]
record = career_step.getAggregateValue()
record = career_step.getAggregateValue(portal_type=portal_type)
if record is None:
raise AttributeError("No Payroll Enrollment Record found for employee %s" % context.getRelativeUrl())
raise AttributeError("No %s found for employee %s" % (portal_type, context.getRelativeUrl()))
return record
......@@ -50,11 +50,11 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>organisation=None</string> </value>
<value> <string>portal_type, organisation=None</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Person_getPayrollEnrollmentRecord</string> </value>
<value> <string>Person_getCareerRecord</string> </value>
</item>
</dictionary>
</pickle>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment