Odoo · 2026

Company-scoped sales and purchase reports from Odoo

A small reporting portal on top of Odoo: pick a company and a date range, get every sale or purchase order with untaxed, tax and total, and the totals on top. Each manager is given only the companies they run, and none of them needs their own Odoo user.

Client
A multi-company group
Role
Design and build
Stack
Next.js 14 · TypeScript · Prisma · SQLite · Odoo JSON-RPC · scrypt

Updated 1 Dec 2026

Discuss a similar systemWhatsAppLinkedIn

Company-scoped sales and purchase reports from Odoo — Sales report: every sale order from Odoo for the chosen company and dates, with totals on top (demo data)

The problem

The group runs several companies in one Odoo database. Managers wanted one number each morning: what their company sold and bought this week. Giving each of them an Odoo user meant paying for more seats and opening the whole ERP to people who only needed two reports, and Odoo's own multi-company switches were too easy to get wrong. Without that, figures went round as screenshots and exported sheets.

What I built

A separate portal that reads Odoo with one service account and decides on its own side who may see what. An admin creates companies in the portal and links each one to its Odoo company, then creates users and ticks the companies each may see; admins see all. The Sales and Purchase pages fetch confirmed orders from Odoo live for the chosen company and date range and add up orders, untaxed, tax, total and average per order. The company filter at the top only ever lists the companies the user is allowed, and every request is checked again on the server, so changing the URL does not reveal another company. Passwords are hashed with scrypt and sessions are signed cookies checked before any page loads.

  • Sales report: sale orders from Odoo by company and date range, with status
  • Purchase report: purchase orders from Odoo by company and date range
  • Totals on top: orders, untaxed, tax, total and average per order
  • Companies: create in the portal and link to an Odoo company; test the Odoo connection
  • Users and roles: tick which companies each user sees; admins see all
  • Server-side check on every report request, not only a hidden menu
  • scrypt passwords, signed session cookies, login required on every page

Outcome

Managers open one page and see their own companies' sales and purchases straight from Odoo, with no export, no screenshot and no extra Odoo seat; the admin adds or removes access with a tick box.

Screens

Click any screen to enlarge it. Arrow keys move between them.

  • Sales report: every sale order from Odoo for the chosen company and dates, with totals on top (demo data)
  • Purchase report: purchase orders by vendor, company and status (demo data)
  • Users and roles: each manager ticks only the companies they may see (demo data)

Want this for your company?

The engagement is described on the Odoo ERP implementation service page: who it is for, what you get, how it runs, and the questions I get asked.

Have a process like this?

Send me the thing your team does by hand every week. I will tell you honestly whether it is worth automating, even when the answer is no.

Email meWhatsAppLinkedIn

Next case study →Follow-ups from field sales visitsCoordinators log each client visit on a short form. Every new answer becomes a visit record, a follow-up task with a due date set by the outcome, and four drafted messages (client and coordinator, WhatsApp and email) that are reviewed and sent from one dashboard.

← Change log for an attendance system with no audit trailAll 20 case studies