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 want to access database in my below method in openerp 7:
def index(self, req, data, token):
data = json.loads(data)
model = data.get('model', )
columns_headers = data.get('headers', )
rows = data.get('rows', )
('Content-Disposition', 'attachment; filename="%s"'
I accessed database in odoo 8 using request.cr in same method.
but here when I tried req.cr and used it too access method, it throws error
cr is not attribute of request.
So tell me a way to access either cr or database somehow.
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: 3/2/16, 5:07 PM|
|Seen: 965 times|
|Last updated: 3/10/16, 2:52 AM|