8 Dolibarr Modules That Replace Expensive ERP Add-Ons
The Problem With ERP Pricing
Most SMBs don't need SAP. They need invoicing, project tracking, maybe some inventory management. But the moment you need a feature that isn't in the base package - construction site tracking, automated recurring invoices, monitoring dashboards - vendors charge thousands per year for add-on modules.
I've watched small construction firms pay more for their ERP add-ons than for their actual ERP licenses. That's backwards.
Dolibarr is an open-source ERP that covers 80% of what these businesses need out of the box. For the other 20%, I built custom modules. Eight of them, all open source.
The 8 Modules
Here's what I built and what each one replaces:
1. Construction Site Management
Tracks sites, assigns workers, logs daily reports, manages equipment allocation. Replaces construction-specific ERP add-ons that typically cost 200-500/month.
2. Monitoring Integration
Connects Dolibarr to Prometheus and Grafana. Business KPIs - revenue, open invoices, overdue payments - show up alongside infrastructure metrics. No more switching between dashboards.
3. AI Data Explorer
Natural language queries against your ERP data. Ask "show me all unpaid invoices from Q4" and get results without writing SQL. Uses LLM APIs for query interpretation, but the actual data retrieval is deterministic.
4. Automated Invoicing
Recurring invoice generation with configurable schedules. Detects contract terms, generates drafts, sends reminders. Saves hours of manual work every month for businesses with subscription-based services.
5. Document Workflow
Automated document generation from templates. Quotes, contracts, delivery notes - all generated from Dolibarr data with proper branding. Replaces standalone document automation tools.
6. Time Tracking & Billing
Worker time tracking tied directly to projects and invoices. Clock in/out, break tracking, overtime calculation, automatic invoice line generation. Built specifically for construction and service companies.
7. Equipment Management
Track tools, vehicles, machinery across sites. Maintenance schedules, depreciation, availability calendar. Construction firms typically use a separate system for this - now it lives inside the ERP.
8. Custom Reporting
Configurable dashboards and PDF reports. Margin analysis, project profitability, worker utilization. The data is already in Dolibarr - this module just makes it accessible without exporting to Excel.
Technical Architecture
Dolibarr's module system is surprisingly well-designed. Every module follows the same pattern:
mymodule/
core/
modules/modMyModule.class.php # Module descriptor
triggers/interface_99_modMyModule.class.php
class/
myobject.class.php # Business logic (CRUD)
sql/
llx_mymodule_myobject.sql # Table creation
llx_mymodule_myobject.key.sql # Indexes & constraints
lib/
mymodule.lib.php # Tabs, menus, helpers
langs/en_US/
mymodule.lang # Translations
The hooks system is where the real power lives. You can intercept almost any action in Dolibarr without touching core code:
class InterfaceMyModuleTriggers extends DolibarrTriggers
{
public function runTrigger($action, $object, $user, $langs, $conf)
{
switch ($action) {
case 'BILL_VALIDATE':
// Auto-generate PDF, send notification, update dashboard
$this->generateAndNotify($object, $user);
return 1;
case 'PROJECT_CREATE':
// Auto-create construction site record
$this->initConstructionSite($object, $user);
return 1;
}
return 0;
}
}
Extrafields let you extend any Dolibarr object without schema migrations:
$extrafields = new ExtraFields($db);
$extrafields->addExtraField(
'site_address',
'Site Address',
'varchar',
100,
255,
'projet', // extends the project object
0, 0, '', '', 1, '', 1
);
This means you can add construction-specific fields to projects, equipment tracking fields to products, or monitoring metadata to invoices - all without modifying a single core file.
Real Cost Savings
Here's what I've seen across the businesses using these modules:
| Scenario |
Before |
After |
Annual Savings |
| Construction ERP add-ons |
3,600/yr |
0 |
3,600 |
| Document automation tool |
1,200/yr |
0 |
1,200 |
| Separate time tracking SaaS |
960/yr |
0 |
960 |
| Equipment management software |
1,800/yr |
0 |
1,800 |
| Total |
7,560/yr |
0 |
7,560 |
The modules are free. The only cost is setup time and optional customization. For a typical 10-person construction firm, that's 7,500+ per year back in the budget.
Getting Started With Dolibarr Module Development
If you want to build your own modules, here's the fast path:
-
Use the module builder. Dolibarr ships with a built-in module generator at /modulebuilder/. It scaffolds the entire directory structure.
-
Read the hooks list. The file htdocs/core/class/hookmanager.class.php documents every available hook point. This is your extension API.
-
Never modify core files. Everything goes through hooks, triggers, and extrafields. This keeps your modules upgrade-safe.
-
Test with DOLI_PROD=0. Development mode gives you detailed error messages and SQL query logging.
# Quick dev setup with Docker
docker run -d --name dolibarr-dev \
-p 8080:80 \
-e DOLI_PROD=0 \
-e DOLI_DB_HOST=db \
dolibarr/dolibarr:22.0.1
- Follow PSR-12. Dolibarr's codebase predates modern PHP standards, but new modules should use proper autoloading, type hints, and PSR-12 formatting.
Open Source, Not Open Season
All eight modules are available on my GitHub. They're built for real businesses - the construction module alone has been running in production for over a year at an Austrian firm.
If you're currently paying for ERP add-ons that do what Dolibarr can do natively with the right modules, you're overpaying. The open-source ERP ecosystem is mature enough to replace most of what SAP and Sage charge premium prices for.
The gap isn't in features. It's in knowing how to build the missing pieces. And with Dolibarr's module system, those pieces are surprisingly straightforward to build.