Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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
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.
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 1/3/14, 3:37 AM|
|Seen: 1162 times|
|Last updated: 1/25/16, 8:42 AM|