Identification



Welcome, Guest
Please Login or Register.    Lost Password?

use same templates after doblibarr update
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: use same templates after doblibarr update
#21251
use same templates after doblibarr update 7 Months, 2 Weeks ago Karma: 0
Hi there

I made a dolibarr Update from 3.1.1 to 3.2.2
Now it can't find my own created templates (proposal, facture...)

in 3.1.1 the facture templates were stored in: /includes/modules/facture/doc

Now they are not listed in the Modul Options.

I found out, that there are also templates in core/modules/...
When I copy my templates there, there are errors.

Is it possible to use the old templates for the new version, or do I have to create all new?

Thanks for answers

Simon
charger472
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21256
Re: use same templates after doblibarr update 7 Months, 2 Weeks ago Karma: 140
Directory has moved. Templates must be into core/modules/facture/doc
You can use your personnalised template, but you must also edit it to reflect path change.
eldy
Administrateur
Posts: 1319
graph
User Offline Click here to see the profile of this user
Gender: Male Site web personnel Location: Rueil Malmaison Birthday: 10/10
Dolibarr grade: Yoda.
Thanks to help the project by making a Paypal donation (credit card allowed) using the link "Make a donation" available on right area of Home page: www.dolibarr.org
The administrator has disabled public write access.
 
#21259
Re: use same templates after doblibarr update 7 Months, 2 Weeks ago Karma: 0
Ok Thanks.

Now I get the Error: PROP_OUTPUTDIR not defined.

Where Do I have to make changes in the files?
I just changed the require_once paths.



Thanks
charger472
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21260
Re: use same templates after doblibarr update 7 Months, 2 Weeks ago Karma: 6
There are a few things that changed between Dolibarr 3.1 and 3.2 about the management of templates, so you should compare a standard template from D31 with the same template in D32 to see the changes.

More specifically for propales, you should replace all

propale->

into

propal->

because the object changed. Also the mkdir function was changed into something like dol_exdir or something akin.
lrq3000
Senior Boarder
Posts: 70
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1