Greetings,
Many thanks in advance. I'm integrating a CRM system with Odoo and need to have a URL link in which i can create and/or bring up a record in Odoo with some custom information.
For example this is the link:
http://localhost:8069/web#id=7&action=217&model=res.partner&view_type=form&cids=&menu_id=170
This pulls up the id=7 for the res.partner model and displays the form.
What I'm needing to do is add some extra information to act on... like the context would be in an action. For example.
http://localhost:8400/web#id=7&action=217&model=res.partner&view_type=form&cids=&menu_id=10&customdata1=XYZ¬es=BlahBlahBlah&status=active
Then I would want to have a custom method that when it gets this URL can take action on those special data items. Like update the record with the data provided or set the status/state of the record. Most importantly is that we also want it display the form view from the backend and don't really want to use a web controller / qweb template if possible. Also something I know we would want to be able to do is create the record and display it if it is not in the system.
Even if I just had a good jumping off point to where I could setup a debugger to track how the existing url options are unpacked that would help me.
Thanks in advance!
Goto web module and in the controller you can see the routes to acknowledge these requests. You have to modify them.
Thanks for the help... Would I have to modify the route's as I really want all the processing and routing to stay the same so it goes to the correct model and view. Should the parameters in the URL not be more what would need to get processed within the correct function that is processing the routing? Not change the route itself? It would seem there is probably a smart place in which to override the method that is breaking apart the URL.
Hello, did you ever find a way to do it?