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 have been trying for days to fix this problem. Any help would be greatly appreciated:
I have a function:
I need to call this from an http.Controller class:
registry = openerp.modules.registry.RegistryManager.get('test')
The whole thing executes without any issues and the function does get called and the write() function even returns True but no values are not written into the database! token1 field is still empty after execution.
you need to write down your controller as like below. Might be helpful to you.
cr, uid, context = request.cr, request.uid, request.context
Thank you ! I would never have got it. The problem, as you pointed out, was with the way I was using registry. I should not be assigning it the way I did, but use it through request.registry.
I still have no idea what the difference is. Could you please throw some light on what the concept is here or where I can read about it?
Thanks again !
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: 5/26/15, 5:23 AM|
|Seen: 1380 times|
|Last updated: 5/26/15, 6:45 AM|