Odoo Help


Deduct half day salary if late

on 1/29/14, 6:22 AM 2,779 views

My need is to deduct half-day salary if he/she is late .In his/her work schedule i define a working hours from 9:00 am to 6:00 pm. If the employee login at 9:31 or above then deduct half day salary (if the employee is login after 30 min from the actual login time.)

I create a new rule called latecoming .But i don't know how to implement the condition in the rule..

How can be link the employee attendance and employee payslip..

On 4/20/14, 9:13 PM


i think u can write this rule with python code 'result = (contract.wage/30)*(-0.5)' , think this will help u 30 == is the month days 0.5 == is the half day or can change it with any deduction ( can be days )

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 1/29/14, 6:22 AM
Seen: 2779 times
Last updated: 12/21/16, 10:56 AM