openbravo: modifying document templates

The original and operating templates are in the following path:

 

/opt/OpenbravoERP-3.0/tomcat/webapps/openbravo/src-loc/design/org/openbravo/erpCommon/ad_reports

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:
http://wiki.openbravo.com/wiki/How_to_change_an_existing_Report

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:

/opt/OpenbravoERP-3.0/openbravo-erp/modules/org.openbravo.reports.modificados/src/org/openbravo/reports/modificados

 

 

The new module that has been exported will be created on the following path:
/opt/OpenbravoERP-3.0/openbravo-erp/modules

The Original Report is Here and needs to be copied:
/opt/OpenbravoERP-3.0/tomcat/webapps/openbravo/src-loc/design/org/openbravo/erpReports

5. Added the Template Location to the Document Type, but the system is not accepting it.
@basedesign@/org/openbravo/erpReports

RESTART OPENBRAVO TOMCAT
/etc/init.d/openbravo-tomcat restart

The path were the ORIGINAL report is stored is:
/opt/OpenbravoERP-3.0/tomcat/webapps/openbravo/src-loc/design/org/openbravo/erpReports/C_OrderJR1.jrxml

Leave a Reply

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