Changes

Jump to navigation Jump to search
m
Line 2: Line 2:  
<!-- You can edit this section but do NOT remove these comments
 
<!-- You can edit this section but do NOT remove these comments
 
     Links below will be automatically replicated on translated pages by PolyglotBot -->
 
     Links below will be automatically replicated on translated pages by PolyglotBot -->
[[fr:Créer_un_modèle_de_document_ODT]]
+
[[fr:Créer_un_modèle_de_document_ODT_ou_ODS]]
[[es:Crear_un_modelo_de_documento_ODT]]
+
[[es:Crear_un_modelo_de_documento_ODT_o_ODS]]
 
[[de:Erstellen einer ODT-Dokumentvorlage]]
 
[[de:Erstellen einer ODT-Dokumentvorlage]]
 
<!-- END interlang links -->
 
<!-- END interlang links -->
    
{{TemplateDocUser}}
 
{{TemplateDocUser}}
This page describe how to build an ODT document template to build documents using ODT generation.
+
This page describe how to build an ODT or ODS document (Format for OpenOffice, LibreOffice, ...) template to build documents, using ODT/ODS generation.
   −
To know how to build a PDF template, see page [[Create a PDF document template]]. Building a PDF template require PHP development knowledge, but not building an ODT template.
+
To know how to build a PDF template, see page [[Create a PDF document template]]. Building a PDF template require PHP development knowledge, but not building an ODT or ODS template.
 +
 
 +
* ODT is the format of documents generated by LibreOffice Writer for example (the mostly used case for document generation).
 +
* ODS is the format of documents generated by LibreOffice Calc for example.
 +
You can you both of them to generated a templatethat can be used by Dolubarr...
    
==Prerequisite==
 
==Prerequisite==
    
*Dolibarr: 3.1+
 
*Dolibarr: 3.1+
*OpenOffice: 3.2+, LibreOffice, ...
+
*LibreOffice or any ODT or ODS editor (OpenOffice, ...)
    
==Create your document==
 
==Create your document==
   −
*Create from scratch an empty OpenOffice document and take a provided example. You may find them installed into a subdirectory of directory '''documents/doctemplates'''
+
*Create from scratch an empty OpenOffice document and take a provided example. You may find them installed into a sub-directory of directory '''documents/doctemplates'''
 
*Edit your document using all your Office suite features.
 
*Edit your document using all your Office suite features.
    
Include in your document the tags you want to see. Tags will be replaced during generation of document automatically by Dolibarr. List of all available tags are provided in next chapter.
 
Include in your document the tags you want to see. Tags will be replaced during generation of document automatically by Dolibarr. List of all available tags are provided in next chapter.
   −
[[File:Warning.png]] <span style="color:#FE0000">'''Warning, tags must be rounded with {} or [] for arrays (see later) and must be typed with no stop using Office suite (with no backspace and no copy-paste). If not doing that, Office suite adds some invisible information makes detection/replacement impossible. With LibreOffice you can also use the Ctrl+M to remove direct formatting from Tags'''</span>
+
[[File:Warning.png]] <span style="color:#FE0000">'''Warning, tags must be rounded with {} or [] for arrays (see later) and must be typed with no stop using Office suite (with no backspace and no copy-paste). If not doing that, Office suite adds some invisible information that makes detection and replacement impossible. With LibreOffice you can also use the Ctrl+M to remove direct formatting from Tags'''</span>
   −
==Tags==
+
==Tags for substitution variables==
 
This is a list of tags that will be replaced with your informations:
 
This is a list of tags that will be replaced with your informations:
   Line 36: Line 40:     
===Contacts===
 
===Contacts===
It is the tags for contact of invoice for invoices (type BILLING), contact of proposal for proposals (type CUSTOMER), contact of order for sale orders (type CUSTOMER). There is not tags for delivery contact.
+
It is the tags for contact of:
 +
* invoice for invoices (type BILLING),  
 +
* contact of proposal for proposals (type CUSTOMER),  
 +
* contact of order for sale orders (type CUSTOMER).
 +
There is no tags for the delivery contact. Also other type of documents are not supported.
 
{{TagsOdtContact}}
 
{{TagsOdtContact}}
   Line 187: Line 195:     
==Store your document==
 
==Store your document==
To have your document to appear in list of available documents, put it into correct subdirectory found into
+
To see your document template appear in the list of available templates by going to the module configuration. In the ODT/ODS Template section, there is a small form to upload the template. It is also possible to place the file manually in the appropriate subdirectory located in the '''documents/doctemplates''' directory
directory '''documents/doctemplates'''
 

Navigation menu