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
    • Property 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
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

Overtime Salary Rule

Subscribe

Get notified when there's activity on this post

This question has been flagged
overtimesalary_rules
1 Reply
133 Views
Avatar
Patrick MANDENGUE

Hi,


Overtime can be added to basic salary by Odoo in the settings of working type but is it possible to have overtime has a separate line, maybe through a salary rule. 

In Ghana, Overtime is taxed differently than basic salary so it cannot be added and needs to be treated separately.


Thank you,

Patrick 

0
Avatar
Discard
Debbie

Yes, create a separate salary rule for overtime. Do NOT use the working type method – that combines overtime with basic salary.

How to do it:

  • Go to Payroll → Configuration → Salary Rules

  • Create a new rule with category Allowance

  • Use Python condition: result = worked_days.OVERTIME.number_of_hours > 0

  • Use Python computation: result = worked_days.OVERTIME.number_of_hours * contract.hourly_wage * 1.5

  • Add this rule to your salary structure

The overtime will then appear as its own line on the payslip, completely separate from basic salary, allowing different tax calculations for Ghana.

Patrick MANDENGUE
Author

I did but:

The result: 

Please help. 

Patrick 

Codesphere Tech

Hello,
Can you elaborate more with example , so I can help your regrading this.

Codesphere Tech

I've try to reproduce but didn't get any error.. Can you give steps you follow so I can double check? With odoo version

Patrick MANDENGUE
Author

I created a salary rule for overtime so that it does not get combined with the Basic salary rule in the salary calculation. In Ghana, overtime is treated separately because it has a separate taxing scheme. 

I follow the instructions but I still have an invalid operation when I try to compute. It seems to be an attribute error with OVERTIME itself.


Avatar
Zehntech Technologies Inc.
Best Answer

Hello Patrick,

Yes, this is absolutely possible in Odoo.

Instead of including overtime in the basic salary structure, you can create a separate salary rule specifically for overtime. This rule can pull overtime hours (from attendance or timesheets) and calculate the amount independently, allowing you to apply different taxation as required.

This approach ensures overtime appears as a separate line on the payslip and can be handled with its own tax logic.

Hope this works for you! If you need any help implementing this or want a more optimized approach, feel free to reach out for further discussion

Regards,

Zehntech Technologies Inc.

santosh.sekwadia@zehntech.com

0
Avatar
Discard
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
How do I compute Overtime (Salary Rule)
salary_rules
Avatar
1
Apr 26
16
Salary rules python variables?
salary_rules
Avatar
Avatar
Avatar
2
Mar 24
3472
Salary rule for attendance bonus
salary_rules
Avatar
0
Mar 24
2282
Refer a Salary rule in another rule Solved
salary_rules
Avatar
Avatar
2
Feb 24
2951
[Odoo 11] Two questions about salary rules.
salary_rules
Avatar
0
May 23
2745
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 Svenska ภาษาไทย 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