Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.46k stars 2.79k forks source link

Fatal error converting an invoice draft to template #6614

Closed loxK closed 7 years ago

loxK commented 7 years ago

Instructions

Bug

When converting an invoice draft to template I get a PHP fatal error: Fatal error: Uncaught Error: Class 'FormProjets' not found in /home/lox/public_html/Tests/dolibarr/erp/htdocs/compta/facture/fiche-rec.php on line 892

Environment

Expected and actual behavior

Should create an invoice template, throws a fatal error an the conversion doesn't happen.

Steps to reproduce the behavior

Create an invoice draft click convert to template

selection_928

AlainRnet commented 7 years ago

Same problem in 5.0.1 I check in htdocs/compta/facture/fiche-rec.php file, the call to the class, line 38. In line 36, we can see the requirement that projects must be enabled. Isn't it possible to convert an invoice draft to template without the project's module ?