Odoo Help

Welcome!

This community 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.

1

Python Code for Salary Rule

By
Tahir Chughtai
on 7/14/14, 2:46 AM 3,879 views

By default the system has 3 computation amount type methods for calclutaing wages and benefits formula. In our case we do not have and rule based salary structure and various components are fixed amounts variables by emplyees and title. If I define rule for eaxh employees, there will be too many, IS THERE ANY PYTHON CODE FOR MANUAL INPUT OF SLARAY AMOUNT UNDER SALARY RULE?

Thanks

 

0
Tahir Chughtai
On 7/14/14, 3:34 AM

Hi Jagdish, actually I want to calculate payroll manually and I would like same is reflected in salary rule. How do I do tha?. For example conatrct wage is 50,000 however basic salary is 20,000, in the salary rule basic I want fixed amount method and amount 0 since for each employee the basic wil be different %. How do I do taht, thanks 

Hi try this https://www.odoo.com/forum/Help-1/question/How-to-add-total-number-of-days-of-current-month-in-Salary-Rule-Python-code-23215 https://www.odoo.com/forum/Help-1/question/Error-Wrong-python-condition-defined-for-salary-rule-14949 https://bugs.launchpad.net/openobject-addons/+bug/1101909

Jagdish Panchal
on 7/14/14, 3:42 AM

problem solve ?

Tahir Chughtai
on 7/14/14, 5:04 AM

No, perhaps I explained my query wrong. Right now when I run the payslip functions, its goes to the salary rule and calculates on that basis, however I don't want that. I would like to add salary manual in payslip or which function I should use in salary rule so that I can input salary manually in pay slip. Many Thanks

Tahir Chughtai
on 7/14/14, 5:08 AM

could we get in touch?

 

Regards

Tahir M Chughtai

Cell: +971 50 1092344

Tel: +971 2 627 2737 ext 217 Fax: +971 2 627 0048

 

From: Jagdish Panchal [mailto:jnp1682@openerp.my.openerp.com]
Sent: Monday, July 14, 2014 12:49 PM
To: Followers of False
Subject: Re: False

 

problem solve ?

--
Jagdish Panchal Sent by Odoo Inc. using OpenERP. Access your messages and documents in Odoo

Tahir Chughtai
on 7/14/14, 5:32 AM
0

Jagdish Panchal

--Jagdish Panchal--
2674
| 5 3 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 7/14/14, 3:05 AM

Hi

Try below link may help you

http://stackoverflow.com/questions/23283855/openerp-payslip-with-leave-in-salary-rule-with-python-code

https://www.odoo.com/forum/Help-1/question/Payroll-salary-rules--python-code-require-24965

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 7/14/14, 2:46 AM
Seen: 3879 times
Last updated: 3/16/15, 8:10 AM