Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Unpaid Leaves is not decrease in the salary computation

Subscribe

Get notified when there's activity on this post

This question has been flagged
hr_payroll
1 Reply
14708 Views
Avatar
sridhar

I am new for OpenERP 7 Please help me... my doubt is i creating salary rule for unpaid leave for the following code "result=-(contract.wage/31)*worked_days.Unpaid.number_of_days"is working but it is not calculating in the net salary amount.. how to calculate it. my entry is correct or not experts use my openerp demo db username sridhartestopenerp@gmail.com password openerpmass please check it and tell the answer soon...

Regards Sridharan G Chennai

1
Avatar
Discard
Maath

@sridhar finally solved Vote me Up if helped you ... http://help.openerp.com/question/16131/unpaid-leaves-deduction-not-working/

Avatar
Maath
Best Answer

all you need is to change sequence of salary rule (Loss .. ) to be less than Net salary rule sequence and Gross see the not on

http: //doc.openerp.com/v7.0/book/4/4_11_HR/4_11_HR_payroll.html#salary-rule-categories

I can not post right like please modify it and see ,

Note: Sequence

Sequence plays a major role in the calculation and appearance of payslip lines. For example, a sequence defined on a rule calculating the Gross should always be greater than the sequence’s given on Allowance’s rules, else it won’t be considered in the calculation of Gross value.

0
Avatar
Discard
sridhar
Author

Thank you Maath, now it is working correctly. sequence number is a problem. now solved.

Maath

@sridhar My pleasure that my effort helped you , can you select my answer as the solution

sridhar
Author

Very thankful for your help...

Maath

@sridhar Thanks , But why do not tic my answer as the solution and vote up my answer ?

sridhar
Author

Mr. Maath one more problem is there, if that employee didn't put any leave for a particular month this Loss of pay concept didn't work. i need if employee get leave means Lop calculation otherwise it is not needed. I think i need to change in Condition is changed to Python Expression its correct.

Maath

@sridhar you need to post new question about the condition when to apply this rule , of course you need to put python code to check total leave for employee . Please send me the link of your question after post it.

sridhar
Author

Error! Wrong python condition defined for salary rule this link, i cant post a link this a title of the error solve it please.

Maath

@sridhar , I am too now have the same error ! even when calculate for new month (Next month) there is wrong result (Sum (all of leave )) we need to Sum of leave for that month only

Maath

@sridhar , But when I create Payslips Batch the operation completed without any error! can you try that and then writ new question here so we will find some one solve this problem .

sridhar
Author

i can't do further process please do my demo database sridhartestopenerp@gmail.com password openerpmass db kgsridhar put one entry i will understand please do.

Maath

@sridhar I will do Are you ready ?

sridhar
Author

u put entry i will see now...

sridhar
Author

create one new employee or existing employee...

Maath

@sridhar No, You can do it just create new Payslips Batch

sridhar
Author

ok i put entry...

sridhar
Author

Error only comming...

Maath

Finally I solved the problem Vote me up if helped http://help.openerp.com/question/16131/unpaid-leaves-deduction-not-working/

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
problem with work entries in hr.payroll
hr_payroll
Avatar
0
May 22
3593
Is it possible to add a custom button to payslips tree view Solved
hr_payroll
Avatar
Avatar
1
May 22
2915
Intégration secrétaria social
hr_payroll
Avatar
1
Jan 22
2603
How to set input in salary rule Solved
hr_payroll
Avatar
Avatar
1
Oct 21
15291
How to add total number of days of current month in Salary Rule Python code ? Solved
hr_payroll
Avatar
Avatar
Avatar
2
Jan 24
15379
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now