I recently upgraded to V16 and noticed that none of the extra fields is displayed in the generated ODT file. The template was working fine in V15 but not in V16. I’ve tried {OPTIONS_XXX} and {EXTRAFIELD_XXX} instead of {OBJECT_OPTIONS_XXX}, but they didn’t work.
I also tried to add a new extrafield and create a brand new ODT template, but nothing worked. I’m quite stuck here and really looking for other ideas to try.
Could someone who also uses ODT templates in V16 confirm if the template is working for you?
So I deleted the database and current installation of dolibarr, and did a fresh install of version 16. Created some test data and a simply ODT template. And sure enough, I’m seeing the same issue (object_options_XXX not displayed in the ODT file). I believe it’s bug, but just wonder if someone can confirm if they are seeing the same thing?
Could you please be so kind to upload somewhere in the cloud an edited version and to send me a link? Since I’m not a programmer/developer I’m having problems with syntax and the installation goes broken after my edit.
I use a Mac so the directory path may be different from yours, but the file is $DOCUMENTROOT/htdocs/core/class/commondocgenerator.class.php. Once you find the file, do the following