Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


configuration/settings screen

Shaumyadeep Chaudhuri
on 1/3/14, 3:37 AM 843 views

How do i create a configuration screen for a module in openerp 6.0, the configuration will have a few fields but there can be only one record in the database for the config.

How do i accomplish it in openerp-6


Atul Arvind

--Atul Arvind--
| 3 3 5
--Atul Arvind--


I am odoo Enthusiast/Consultant from Baroda, Gujarat, India. Working with odoo from v5 to v9 and other opensource technology since 4+ years. Having Strong Expertise in

Requirement gathering & Gap Analysis

Odoo Development

Odoo Customization

Odoo Training

Odoo Integration

Server Administration

Odoo Migration


I am also active on StackOverflow.


Atul Arvind
On 1/3/14, 3:51 PM

To accomplish only one record in the for the table is little bit tricky. but we can do it by over ridding the create method. here is my sudo code.

def create(self, cr, uid, vals, context=None):
    records = self.search(cr, uid, [])
    for id in records:
        self.unlink(cr, uid, id, context)
    return super("CLASS_NAME", self).create(cr, uid, vals, context=context)

Hope it will help.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 1/3/14, 3:37 AM
Seen: 843 times
Last updated: 1/25/16, 8:42 AM