hr payroll rules python code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP R&D Addons Team 3 |
Bug Description
1) Steps to reproduce the issue you have observed
I create two Rule and one Category.
first rule is like:
Code: TEST2
Name: TEST2
Fixed Amount = 100
Second Rule:
Code: TEST
Name: TEST
Python Code: result = rules.TEST2
2) The result you observed
File ".../addons_
lines = [(0,0,line) for line in self.pool.
File ".../addons_
tot_rule = amount * qty * rate / 100.0
TypeError: unsupported operand type(s) for *: 'browse_record' and 'float'
2013-01-19 21:21:16,736 11013 ERROR ? openerp.netsvc: unsupported operand type(s) for *: 'browse_record' and 'float'
3) The result you expected
I expected that rule TEST give me a result = 100 and when i use rules: object containing the rules code (previously computed)
it's doesnt work well
4) The platform you are using (and browser version, if relevant)
Ubuntu 12.04 LTS
5) The OpenERP version you are using
Openerp Server 6.1 REV.: 4333
Openerp Client 6.1 REV.: 2085
Openerp Addons 6.1 REV.: 7132
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedhr_payroll/hr_payroll.py (+1/-1)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Low |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
tags: | added: hr payroll |
It's very important