openbravo: modifying document templates

The original and operating templates are in the following path:



Note that there are other paths where you're able to find the same reports but this is the "production" location.


Modify Templates

The first thing you will want to do when you have a production OpenBravo instance is to modify the Document Templates, the most relevant would be (Sales Order, Purchase Order and Invoice).

Please see Openbravo's reference information:

1. Create new module

1.1. Log In as Admin
1.2. Create Module
1.3. Export Module
1.4. Recreate Folder Structure
1.5. Assign created module to Document Template

1.3 Export Module

cd /opt/OpenbravoERP-3.0/openbravo-erp/

ant export.database

You will have a couple of details here

  • You need to define the JAVA_HOME
  • You need to establish the correct folder permissions otherwise compilation will not be successful.


1.4. The module needs to be created on the system, the exported and then the folder structure needs to be created MANUALLY using an FTP Program such as Filezilla or SSH access.

1.2 Once this is done, you need to go to Document Type and Select the new address for this Module; on the tutorials its not clear what path to use, I'm using Ubuntu 10.4 and after a long trial and error process the path that worked for me is:




The new module that has been exported will be created on the following path:

The Original Report is Here and needs to be copied:

5. Added the Template Location to the Document Type, but the system is not accepting it.

/etc/init.d/openbravo-tomcat restart

The path were the ORIGINAL report is stored is:

Leave a Reply

Your email address will not be published. Required fields are marked *