Blog

At toolkit we are always learning something new. In this section we share our thoughts and views as well as new technology challenges that have come our way. Tell us what you think!
Nov 3
Nov 3

Odoo Minimum Hardware Requirement

Requirements for running Odoo 9 Community and Enterprise are the same. For a 5 user site = 2 CPU server and 2 GB Ram For 20 user site = 4 CPU server and 8 GB Ram For 100+ user site = recommend splitting app and database servers, 2 x 8 CPU servers with 32 GB […]

  Read more
Oct 2
Oct 2

The Worst Server Setup Mistake You Can Make

There’s one server setup mistake you can make that will screw you up for years to come. It’ll haunt your business, your developers and your server admins, and be hugely expensive to fix. It’s surprisingly easy to make. The mistake? Setting the timezone to anything other than UTC Use UTC Use UTC. Use UTC. Use […]

  Read more
Oct 0
Oct 0

Reference a record in a table based on XML id name

There is a method called “get_object_reference” which gives you the database ID from xml ID. In this method you have to pass module name where xml record is created and xml ID of the record. Example: V7: self.pool.get(‘ir.model.data’).get_object_reference(cr, uid, ‘module_name’, ‘xml_id_of_record’)[1] V8: record_id = self.env.ref(‘module_name.xml_id_of_record’).id

  Read more
Oct 4
Oct 4

Installing Odoo 9 in Ubuntu 14.04

1. Introduction In this tutorial I will teach you how to install Odoo 9 on Ubuntu 14.04. The script that you will use is based on the code from André Schenkels but has been updated and improved. 2. Creating a new file The first step is to create a new .sh file on your Ubuntu machine, […]

  Read more
Jan 1
Jan 1

Openerp set default value of popup form from one2many field parent

Class definition (shop.py), please note the magic active_id class item(osv.osv): _name = “shop.item” _columns = { “item_id”: fields.many2one(“shop.cart”, “Cart”), } _defaults = { “item_id”: lambda self, cr, uid, c: c.get(‘item_id’, False), } class cart(osv.osv): _name = “shop.cart” _columns = { “item_ids”: one2many(“shop.item”, “item_id”, “Items”), } In the view definition for the one2many field (shop_view.xml) <field […]

  Read more
Dec 0
Dec 0

OpenERP function fields, and the store= parameter

One thing I could never quite get my head around was the store= parameter in OpenERP. OpenERP explains it like this: store Parameter It will calculate the field and store the result in the table. The field will be recalculated when certain fields are changed on other objects. It uses the following syntax: store = […]

  Read more
Aug 0
Aug 0

Create A Scheduler in OpenERP

Here are Steps you have to follow :Step 1 :          In view file simply write as under          <record model=”ir.cron” id=”resource_panelty_cron”>            <field name=”name”>Resource Panelty Count</field>            <field name=”interval_number”>1</field>            <field name=”interval_type”>minute</field>            […]

  Read more
Jul 0
Jul 0

Install Odoo with Nginx on an Ubuntu VPS

In today’s post we will explain you how you can easily install Odoo with Nginx as a reverse proxy server on a Ubuntu VPS. Odoo (formerly OpenERP) is a suite of open source Business apps. Some of the modules included in Odoo are: E-commerce, Accounting & Finance, Expense Management, Calendar ..etc. Update your system To update […]

  Read more
Jul 1
Jul 1

Creating a Sequence in Odoo

Adding a sequence for records in OpenERP is very simple. For making a field a sequence type, we need to create new sequence or use existing sequence. For creating a sequence, we need to create two type of objects, one is “ir.sequence.type” and other “ir.sequence”. The example to create these records are given below.. <record […]

  Read more
Jun 0
Jun 0

FIXED: ACCESS DENIED during backup in OpenERP v7

I got a message Access Denied during a backup in OpenERP 7   To solve this: Edit your openerp-server.conf file     Just add pg_path = /usr/pgsql-9.2/bin The path will depend where you installed your postgresql server

  Read more
Jun 1
Jun 1

Install OpenERP-Server and Postgresql on separate servers

The objective is to install OpenERP and PostgreSQL on separate machines and configure them so that OpenERP can connect to the PostgreSQL running on the remote machine. We will go step by step Here are the details of my environment. PostgreSQL will be installed on fedora running in a virual machine. OpenERP All-in-One (Server, Client […]

  Read more
May 3
May 3

ODOO many2many relation with attributes

#file: res.partner.py from osv import osv from osv import fields class res_partner_rel(osv.osv): _name = ‘res.partner.rel’ _columns = { ‘partner_left_id’ : fields.many2one(‘res.partner’), ‘partner_right_id’: fields.many2one(‘res.partner’,’Relationed Partner’), ‘property_left2right’: fields.char(‘Relation’,size=32), } class res_partner(osv.osv): _name = ‘res.partner’ _inherit = ‘res.partner’ _columns = { ‘m2m_right2left’ : fields.many2many(‘res.partner’,’res_partner_rel’,’partner_right_id’,’partner_left_id’), ‘m2m_left2right’ : fields.many2many(‘res.partner’,’res_partner_rel’,’partner_left_id’,’partner_right_id’), ‘o2m_left_ids’: fields.one2many(‘res.partner.rel’,’partner_left_id’), } < #file: partner_view.xml <?xml version=”1.0″ encoding=”UTF-8″?> <openerp> <data> […]

  Read more