← All articles

upgrades

Why you should never have Dolibarr itself modified

A change made inside Dolibarr works the day it is written, then vanishes at the next upgrade. Here is what it costs you, and how to get the same result another way.

4 min read

A change made inside Dolibarr is wiped out at the next upgrade. It works today, it is gone tomorrow, and usually nobody notices until a colleague reports that an invoice no longer behaves the way it used to.

Two things need separating here. Dolibarr is the software as its authors publish it. A module is an addition that sits beside it, is switched on from your settings, and never goes inside the software. The first is replaced with every new release; the second is not.

What happens when the software is altered

The story is nearly always the same:

  1. An urgent need: a piece of information to show on the invoice, a check to add before an order is confirmed.
  2. The quickest route, for anyone with server access, is to go and alter the screen inside Dolibarr.
  3. It works. Everyone moves on.
  4. A year later Dolibarr is upgraded. The software is replaced by its new version, and the change has disappeared.

The worst part is not losing the change. It is no longer knowing it existed. The person who made it has often left, nothing was written down anywhere, and the team spends days wondering why "it used to work".

The other outcome is more expensive still: never upgrading again. Your Dolibarr stays frozen on an old version, without security fixes, without new features, and every year that passes makes catching up heavier and costlier. That is the trap we find most companies in.

What exists instead

Dolibarr was designed so that things can be added to it without altering it. Almost every need has its own proper answer:

What you need The right way to get it
One more piece of information on an invoice, a customer, a product An extra field, created from your own settings, no development
Showing or hiding something on a screen A module, which adds without replacing
Reacting to an event: a validation, a payment A module, which reacts at that moment
A brand-new screen A module, with its own tab or menu entry
A document in your own shape An extra document template, beside the original ones
A repetitive task to automate A scheduled task, brought by a module
An exchange with another piece of software A bridge, brought by a module

What these have in common: they are places the authors of Dolibarr commit to keeping from one version to the next. When one of them changes, it is announced, and it is the module that gets adjusted — not your software.

Our rule

At DMS we take every need in this order:

  1. Can Dolibarr already do it? With an existing setting, very often. When that is the case we tell you, and you have nothing to install.
  2. If not, is an extra field enough? That is a few clicks in your settings, no development.
  3. If not, it is a module, which adds beside what exists and switches off as easily as it switched on.
  4. Never: touching Dolibarr itself.

And if there really is no other way?

It happens, rarely. Two honest options remain.

The first is to propose the change to the Dolibarr project. If it is accepted, the place needed will officially exist in later versions, and everyone benefits.

The second is to accept the limit, write it down, and choose knowing what it costs. You may well prefer to adjust the way you work slightly rather than forbid yourself any upgrade for five years.

What you should not do is the silent alteration that nobody documents and the next upgrade erases.

Frequently asked questions

How do I know whether my Dolibarr has already been altered?

Ask the person or provider who looks after it, and have the answer written down. Technically the check means comparing your installation with the official release of the same number: anything differing outside your settings, your documents and your modules is an alteration. That is exactly what you want to know before an upgrade.

Does a module slow Dolibarr down?

No more than the same feature written inside the software. A module only works on the screens and events that concern it, and stays silent everywhere else.

Can alterations already made be undone?

Yes, and it is often the first step before a long-postponed upgrade. You list the differences from the original version, find the proper way to obtain each one, and put the software back to normal.