Skip to main content

Posts

Enable or Disable OpenbravoERP html buttons

Recent posts

Openbravo is not printing my custom receipt

This depends on the configuration of the instance and the OB version, please check the wiki: http://wiki.openbravo.com/wiki/Retail:Developers_Guide/How-to/How_to_create_and_modify_new_receipt_documents_from_other_module#Make_the_Template_Available_from_POS_Print_Templates_and_Organization_windows A dirty and useful trick, is to set the address of the receipt ourselves. After running tomcat, in the generate Javascript file search this line: this.templatereceipt = new OB.DS.HWResource(terminal.printTicketTemplate || OB.OBPOSPointOfSale.Print.ReceiptTemplate); Add a breakpoint to the next line:  extendHWResource(this.templatereceipt, "printTicketTemplate"); And press F5 to the browser POS Terminal, when it gets to the breakpoint that we added, write the address to your custom receipt in the console (in my case /biz.cleardrop.hpsi.securesubmit/receipts/printCard.xml) : this.templatereceipt = new OB.DS.HWResource("../biz.cleardrop.hpsi.securesubmit/rece

Backup gmail and google account data in 5 minutes

Hello World! For some reason we want to do a backup. A paranoid backup (in my case). We can backup all the google account data following these steps: 1. Log into your google account and go to: https://www.google.com/settings/takeout?pli=1 2. Select what you want to backup:  3. Continue and choose how do you want your backup to be delivery (I chose by email, but you can also store it on Google Drive) 4. Wait until you get a mail with the link (For my 500 MB mail backup it took 10 minutes, it could take more time to receive the mail, depending on your data) 5. Done! you can now download the data!

Change Unity in ubuntu: 2 Steps

If you like other elements of Ubuntu, but you don't like the user interface (desktop environment or login screen) or if you want to try a different UI, you don't need to change to another distro! You could install a new desktop environment or configure the new login screen. Also, you can get back to Unity if you like it better, every time you log in you will be able to choose between the installed desktop environments. Steps: Step 1 .  First, you need to install the desktop environment: For Gnome Shell(gnome3 ): sudo apt-get install gnome-shell sudo apt-get install gnome-tweak-tool Clasic Gnome (gnome2): sudo apt-get install gnome-panel KDE: sudo apt-get install kde-standard or sudo apt-get install kubuntu-desktop (Taken from: http://kde.org/announcements/announce_4.2-beta1/desktop.png) Light and fast XFCE: sudo apt-get install xfce4 (Taken from: https://es.wikipedia.org/wiki/Xfce ) A fork of Gnome 2 (MATE): sudo add-apt-re

Easy Openbravo steps (Duplicating an instance)

Hello world, You have a remote server with an Openbravo Instance, you need a local clone to start your development, what do you need to do? Assumptions: process are similar, in this particular case we are using a local pc with Windows/PostgreSQL and the remote server is using a Linux core/PostgreSQL Steps 0. Connect to the remote server 1. Backup a PostgreSQL database 2. Backup the OB folder 3. Restoring DB 4. Restoring OB  5. Configuring Openbravo.properties 6. Compiling 0. Connect to the a remote server   You need to establish an SSH connection with the remote server, I will be using BitVise for Windows (it provides SSH, an SFTP GUI and Port Forwarding)   Add your credentials and remember that some servers need public keys that you need to add. Once logged in, a new terminal will prompt;   1. Backup a PostgreSQL database In our new remote terminal we can execute pg_dump to backup our PostgreSQL database, with default values e.g. pg_dump -U tad -p 5432 -h

Configurar Apache + SSL + certificados autofirmados (en Linux/Ubuntu)

Hola mundo, 0. Recordemos que al crear un certificado necesitaremos rellenar estos datos: Country Name (2 letter code) [AU]:   State or Province Name (full name) [Some-State]:   Locality Name (eg, city) []:   Organization Name (eg, company) [Internet Widgits Pty Ltd]:   Organizational Unit Name (eg, section) []:   Common Name (eg, YOUR name) []:   Email Address []:   Please enter the following 'extra' attributes  to be sent with your certificate request   A challenge password []:   An optional company name []:   1. Lo primero sera crear una Autoridad Certificadora autofirmada: openssl genrsa -des3 -out ca.key 4096 openssl req -new -x509 -days 7300 -key ca.key -out ca.crt 2. Seguir pasos para instalar SSL y Apache: http://betatwits.wordpress.com/2010/07/21/activar-ssl-en-apache2-ubuntu-10-04/ 3. Seguir pasos para instalar SSH: http://www.cyberciti.biz/faq/ubuntu-linux-openssh-server-installation-and-configuration/ 4. Generar un CSR: http://www.mrvoip.co

Como usar PostgreSQL 9.3 y Grails 2.3.5 (Integrar)

Hola mundo, a continuacion los pasos a seguir:   1. Descargar JDBC de PostgreSQL(http://jdbc.postgresql.org/download.html#current) 2. Copiar ese archivo en la carpeta lib de nuestro Proyecto Grails 3. Despues de ejecutar run-app, abrir el "localhost:8080/Proyecto/dbconsole" y hacer prueba de conexión (Test Connection) con:   Driver Class: org.postgresql.Driver JDBC URL: jdbc:postgresql:strategy   //strategy es mi base de datos User Name:  postgres Password: postgres 4. En el DataSource.groovy añadir las líneas en Negritas:    dataSource {     pooled = true     driverClassName = "org.postgresql.Driver"     dialect = "org.hibernate.dialect.PostgreSQLDialect"     username = "postgres"     password = "" } // environment specific settings environments {     development {         dataSource {             dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'vali