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.
I am writing an application to service Dropbox webhooks and I have a controller class:
def index(self, req, **kwargs):
"""Need to access database tables here"""
So I figured out that I need a cr, uid, and some other parameters,
I defined the following and have gotten it to work:
cr = openerp.sql_db.db_connect("DBNAME").cursor()
Is this the best way to do this?
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: 6/16/14, 9:17 AM|
|Seen: 2057 times|
|Last updated: 9/22/15, 10:54 AM|