Custom field in .odt file

Dear friends, I’m trying to list in my projects template .odt file a custom field labeled “cellularphone” that I have created inside third party module. Following the instructions available under dolibarr wiki, I tried {cf_cellularphone} and also {company_cf_cellularphone}. I also tried using _raw at the end of both condictions and it is not working. Could someone please help me? Many thanks

1 Like

I could find and solve the question

As it says at " https://wiki.dolibarr.org/index.php/Create_an_ODT_document_template "

An extra field must be " {company_options_xxx} : Value of extra field (where xxx is code of extra field) " and not {cf_XXXX as i was using" …

Another important thing it does not uses the Value “Celularphone” in this case, but the attribute code. In my case " clph ", so after inseting this line in my .odt file “Cell Phone # {company_options_clph}” it is showing the client’s cell phone !