You are hereERP-and-accounting / openerp


Openerp backups

From cron I usually backup all database regularly, some ones daily, and delete backups older than 40 days.

Openerp example scripts

I've put up some example XML-RPC scripts for Opnerp5 on google code:



These are (sample) simple working scripts to list accounts, invoices, partners/contacts, invoices/payments per partner etc.

Partners can also be imported and invoices created.

Feel free to use, and also to contribute!

Troubleshooting create db errors

Having setup a new Ubuntu 8.04 with Openerp 5.0.10, it was not possible to create databases.

Watching the usual suspect logs:
tail -f /var/log/messages /var/log/syslog /var/log/daemon.log /var/log/openerp/server.log /var/log/postgresql/postgresql-8.3-main.log &

Openerp: Wizard for exporting to excel



To do: Expalin the code below....


[Update 21.jun'10:
- There was a bug in the webinterface when downloading the excel file, see , hopefully the fix will be included in 5.0.12.
- This example use a classical wizard, it can also be be using osv_memory ... must add an example


In the modules view xml, create a wizard and menu item that calls it:

V5 install notes

Version 5.0.1 was installed (17th Jun'09) according to the guide on

A few differences:

- Pull sources from launchpad, rather than download the tarball (since there is no tarball for extra-addons, or community addons and its easier to follow source code changes). The bzr_setup script pulls down the sources for client, servers, addons and web client.