We just moved to Odoo 19 and our accountant says the VAT figures on invoices don't match what we file with TRA. Some of our prices include VAT and some don't. We also pay suppliers for services and need to deduct withholding tax, and some customers deduct withholding from what they pay us. What is the correct way to set this up for Tanzania?
Welcome!
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
How do I set up 18% VAT and withholding tax on services in Odoo for Tanzania?
This question has been flagged
1
Reply
67
Views
Good question. Most VAT problems in Odoo come from three things: the wrong localisation, mixed tax-included and tax-excluded prices, and withholding tax set up as a normal tax. Here is a clean setup for Odoo 18 or 19. Rates below were checked on 20 November 2026; confirm them with TRA or your tax adviser before you post live transactions.
Current rates (Mainland Tanzania)
- VAT standard rate: 18%. Zanzibar has a different rate.
- Withholding income tax on service fees: 5% for residents, 15% for non-residents (treaties can lower the non-resident rate).
Part 1: VAT at 18%
- Go to Accounting ‣ Configuration ‣ Settings. In Fiscal Localization, check the package is Tanzania. You can only change it before any entry is posted.
- Go to Accounting ‣ Configuration ‣ Taxes. Look for existing 18% sales and purchase taxes. Activate them if they are inactive. Create them only if they are missing.
- Open the sales tax. Check: Tax Type = Sales, Tax Computation = Percentage of Price, Amount = 18. On the Definition tab, the tax lines should post to your VAT Output (payable) account.
- Open the purchase tax. Same settings, Tax Type = Purchases, posting to VAT Input (recoverable).
- Back in Accounting ‣ Configuration ‣ Settings ‣ Taxes, set these as the Default Taxes.
- Pick one rule for prices. If your shelf prices include VAT (common in retail), tick Included in Price on a separate "18% incl." tax and use it for those products only. Don't mix both on the same product.
- Add 0% taxes for exempt and zero-rated items, then check each product's Sales Taxes and Purchase Taxes fields.
Part 2: Withholding tax you deduct from suppliers
- Create an account such as "Withholding Tax Payable" (current liability).
- In Accounting ‣ Configuration ‣ Taxes, create a new tax: Name "WHT Services 5%", Tax Type = Purchases, Computation = Percentage of Price, Amount = -5. The minus sign is what makes it a withholding.
- On the Definition tab, post both invoice and refund lines to Withholding Tax Payable.
- In Advanced Options, give it its own Tax Group, such as "Withholding", so it shows separately.
- On a service bill, add both taxes to the line: 18% VAT and WHT 5%. Odoo computes both on the net amount. You pay the supplier the balance and remit the 5% to TRA.
- Repeat with -15% for non-resident suppliers.
Part 3: Withholding customers deduct from you
- Create an account "Withholding Tax Receivable" (current asset).
- When the customer pays less, open the invoice and click Register Payment. Enter the amount received.
- Under Payment Difference, choose Mark as fully paid and select Withholding Tax Receivable. Keep the customer's withholding certificate.
Gotchas
- VAT withholding is different. Some customers are appointed VAT withholding agents and may withhold part of the VAT. The Finance Act 2026 reportedly set new rates for this. Confirm the current rules with TRA before you configure it.
- Don't edit a used tax. If a tax already has posted entries, archive it and create a new one. Editing changes history.
- Fiscal receipts. Correct taxes in Odoo do not issue TRA receipts on their own. You still need an EFD/VFD or a link such as our TRA VFD integration.
- Test first. Post one sales invoice and one service bill in a test database, then check the tax report before going live.
If your VAT report still doesn't match TRA, we can review your tax setup with you. See our Odoo support plans.
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