Salary Head Condition Ignored

Bug #705827 reported by Gerhard du Toit
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

I have the following condition in the salary head
  (gross * 12) < 132001
Then with a gross salary of 15000 that head is still applied

V6.0.1 Ubuntu

description: updated
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) wrote :

Hello,

Your formula is wrong.This formula will pass boolean answer which is not the result.
consider the following formula exist in the code :

amount = line.amount * eval(str(line.category_id.base), obj)
here it will evaluate the result as a field name in small character which are in following way:

1) static field : basic, gross and net
2) Dynamic field which are code of allowances or deduction.

Hope this is enough for you.

Thanks.

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Gerhard du Toit (gdutoit) wrote :

PLEASE, PLEASE, PLEASE, I do NOT understand ! ! !

Please show me what I must put in the condition if I want the head to be ignored in the following situations.

1.When the annual gross salary is less than 100000 then do not apply the head.

2. When the annual gross salary is not between 100001 and 200000 then do not apply the head.

Revision history for this message
Carlos Contreras (carlos-realsystems) wrote :

I suppose:

if gross > 100001 and 200000:
    gross
else:
    0
------------------------------------------------

Please give us samples there is very short documentation here!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.