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
Odoo Training Center
|Asked: 5/26/15, 5:23 AM|
|Seen: 1182 times|
|Last updated: 5/26/15, 6:45 AM|