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
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Human Resources Payroll
  3. Pakistan Payroll Withholding Tax Pro - Advanced Tax Slabs & Fiscal Year Engine v 17.0
  4. Sales Conditions FAQ

Pakistan Payroll Withholding Tax Pro - Advanced Tax Slabs & Fiscal Year Engine

by Ayyan Saddiqui https://ayyan420.github.io/ayyan-saddiqui-senior-software-engineer-portfolio/
Odoo

$ 39.71

v 17.0 Third Party
This module requires Odoo Enterprise Edition.
Live Preview
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Discuss (mail)
• Employees (hr)
• Payroll (hr_payroll)
• Employee Contracts (hr_contract)
Lines of code 695
Technical Name payroll_withholding_tax_pk
LicenseLGPL-3
Websitehttps://ayyan420.github.io/ayyan-saddiqui-senior-software-engineer-portfolio/
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Discuss (mail)
• Employees (hr)
• Payroll (hr_payroll)
• Employee Contracts (hr_contract)
Lines of code 695
Technical Name payroll_withholding_tax_pk
LicenseLGPL-3
Websitehttps://ayyan420.github.io/ayyan-saddiqui-senior-software-engineer-portfolio/
Pakistan Payroll Withholding Tax Banner

Odoo 17 Payroll • Automated Tax Slabs • Fiscal Year Logic

Pakistan Payroll Withholding Tax Pro

Multi-tier progressive tax engine for Odoo 17 HR. Handles fiscal year (July–June), medical allowance deduction, monthly projections, and complete payslip audit trail.

⚡ Progressive Tax Slabs 📆 Fiscal Year 2026-27 ready 🧾 Medical Allowance toggle 📈 Future month estimation 🔐 Odoo 17 Native
6 tax brackets
100% automated calc
$40 lifetime license

📞 Purchase & Direct Support — Ayyan Saddiqui

WhatsApp: +92 316 4705102  |  Call: 0316 4705102  |  Email: ayyansaddiqui420@gmail.com

🔗 https://github.com/Ayyan420/ayyan-saddiqui-senior-software-engineer-portfolio  |  github.com/ayyan420

Complete Withholding Tax Control

Manage tax slabs, preview yearly projections, and let Odoo auto-calculate monthly deductions based on fiscal year rules.

Tax slab selection

Slab assignment & yearly income preview

Withholding tax config

Tax slabs FY 2026-27 & medical allowance toggle

FEATURE 01

Progressive Tax Slabs with Threshold & Variable %

Configure unlimited brackets: lower amount, upper amount, fixed amount, threshold, and variable rate. Perfect for income tax models (e.g., Pakistan, India, or custom fiscal regimes).

Tax slabs configuration tree

Easy editable tax brackets – lower/upper, fix amount, and dynamic variable %

  • ✔️ 6 built-in demo slabs (Category 1 – Category 6) covering up to 999M income
  • ✔️ "Threshold" logic: tax = fix_amount + (salary - threshold) * variable%
  • ✔️ Medical allowance deduction before tax calculation (toggle)
  • ✔️ Real-time chat & activity tracking on tax configuration changes
FEATURE 02

Smart Fiscal Year Projection (July–June)

Automatically aggregates previous payslips from current fiscal year, estimates remaining months using contract salary, and applies correct tax slab on pro-rata basis.

fiscal year payslip calculation

Payslip July 2026: Gross 127,630, Withholding tax -421.82 based on projected yearly income

  • 📆 Detects current month (July 2026) -> fiscal year 2026-27 starts Jul 1
  • 📊 Sums up previous months (July only if first month, plus historical done/paid payslips)
  • 🔮 Estimates missing months (Aug 2026 – Jun 2027) using basic monthly wage
  • 🧾 Tax for year = fix + (projected_annual - threshold)*var% → then divided by remaining months
FEATURE 03

Native Payslip Integration – Withholding Tax Tab

Each payslip shows the exact slab applied, annual projected salary, medical allowance, and calculated tax. Full transparency for HR and employee.

payslip withholding tax line
salary rule based_on_wht
  • ✅ "Withholding Tax (Slab)" page inside payslip form, visible only when tax line exists
  • ✅ Custom salary rule type: "Compute From Withholding Tax Slabs" → calls tax engine
  • ✅ Audit: Medical allowance, yearly salary, tax applied, slab name, thresholds stored per payslip
  • ✅ Works with payslip editing wizard: re-computes tax after manual line edits
FEATURE 04

Flexible Salary Rule & Editable Structure

Add a "Withholding Tax" deduction rule, set amount type to 'Compute From Withholding Tax Slabs', and Odoo automatically invokes the progressive tax calculator.

Salary rule withholding tax

Rule "Withholding Tax" uses new amount selection 'based_on_wht' — fully integrated.

📋 Example Tax Slabs (FY 2026-27)

Slab Name Lower (Rs) Upper (Rs) Fix Amount Threshold Variable %
Category 1 0 600,000 0 0 0%
Category 2 600,001 1,200,000 0 600,000 2.5% → 1% *
Category 3 1,200,001 2,400,000 15,000 1,200,000 12.5%
Category 4 2,400,001 3,600,000 165,000 2,400,000 22.5%
Category 5 3,600,001 6,000,000 435,000 3,600,000 27.5%
Category 6 6,000,001 100,000,000 1,095,000 6,000,000 35%

*customizable via 'payroll.withholding.tax.line' model – supports any progressive regime.

Complete UI Walkthrough

payslip lines
salary computation
work entries
configuration menu
configuration menu
configuration menu
configuration menu
configuration menu
configuration menu
configuration menu
configuration menu
configuration menu
configuration menu

🔧 Developer & Technical Highlights (Odoo 17)

  • ✓ Models: payroll.withholding.tax, payroll.withholding.tax.line
  • ✓ Override hr.salary.rule._compute_rule for 'based_on_wht' type
  • ✓ Fiscal year helper: July–June projection engine
  • ✓ hr.payslip extension with one2many tax lines
  • ✓ Medical allowance toggle: deduct 10% before tax if enabled
  • ✓ Tracking & chatter integration on tax slabs
  • ✓ Access rights via CSV + group_user / hr_payroll manager
  • ✓ 100% Owl 18 compatible views, no monkey-patch risk

✔️ Compatible with Odoo 17 EE. ✔️ Handles retroactive payslip recomputation. ✔️ Dynamic remaining month estimation.

ENTERPRISE READY • LIFETIME LICENSE

Pakistan Payroll Withholding Tax Pro

One-time payment, free updates for Odoo 17.x, and priority support.

💰 Price: $40 USD
📦 Includes source code + XML views
🧾 Installation guide & demo data
📲 Contact via WhatsApp → +92 316 4705102 ✉️ ayyansaddiqui420@gmail.com

Delivery within 24h after payment. Customizations available upon request.

📘 Developer Portfolio (Ayyan) 🐙 GitHub: ayyan420

© 2026 Ayyan Saddiqui – Senior Odoo Engineer. Withholding Tax Module v1.0 for Odoo 17. Fully compatible with hr_payroll and fiscal year projections.

⚙️ Screenshots reflect actual module behavior: slab configuration, payslip withholding tax lines, and monthly deduction examples.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
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

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