Werbeaktionen

Neue Produkte

EasyModelePdf

mp23357d20260708170932

Neu

Install your custom PDF document models (pdf_*.modules.php) with a simple drag & drop — no carrier module to build.

KOSTENLOS

  • Autor Nicolas Zaoui
  • Modulversion 0.1.0
  • Veröffentlichungsdatum 08.07.2026
  • Zugriff auf Updates und Downloads 2 Jahre
  • So kontaktieren Sie den Support nz@anatoleconseil.com
  • Kompatibilität Dolibarr V19+   -   PHP>= 7.4
  • Letztes Update 13.07.2026 11:21

Mehr Infos...

EasyModelePdf — drop your custom PDF models, done

You wrote a custom PDF document model (pdf_mymodel.modules.php) for a customer. Dolibarr gives you no way to install it: you have to build a carrier module by hand for every customer, declare module_parts['models'], copy the file into the right core/modules/<object>/doc/ directory... and remember that the class name must match the file name, or the model silently never shows up.

EasyModelePdf replaces all of that with a drag & drop.

How it works

  • Drop your pdf_*.modules.php files on the module setup page (several at once).
  • Auto-detection of the target object from the ModelePDF* parent class: customer orders, invoices, proposals, shipments, delivery receipts, supplier orders and invoices, contracts, interventions, projects, tasks, stock, manufacturing orders, BOMs, tickets.
  • Validation with clear error messages: file name pattern, PHP class present, and the "class name = file name" Dolibarr rule enforced instead of failing silently.
  • Safe storage: the file is kept in the Dolibarr documents directory (source of truth) and deployed into the module tree. A module upgrade never loses your models — they are redeployed automatically at activation.
  • Management from the same page: enable/disable the model, set it as default for its object type, download it back, delete it. Installed models also show up in the native document model lists, like any core model.

Requirements

  • Dolibarr 19.0+, PHP 7.4+
  • The web server must be able to write inside the module directory to deploy models (a clear warning is shown otherwise).

Security note: uploading a PHP file is code deployment. Upload is restricted to Dolibarr admin users, CSRF-protected, and the file is parsed to check it declares the expected model class. Only deploy models you trust.




If you think this module is a fork of another one (published after the first one) or violates some terms or conditions of use (for users or vendors), you can make a report at dolistore@dolibarr.org