I viewed the coding and procedures to get url but it is always used with respect to a partner object. For more info: Q/A @ help.openerp.com.
I am in need to send the email to users if the task is gonna be expired soon. In the email, I need to have a link to the project.task record similar to
Thanks & Regards,
You can can web_base_url option (
Settings-->Customisation-->Low level objects-->System parameters) to get your custom url and append additional info to it like action_id and model name. So as an example to get link to specific product your code will looks like:
action_id = Get action id opening your form base_url = Url from system parameters product_id = Id of product you want to get link to link = '%s:8069/web/webclient/home#id=%s&view_type=form&title=Products&model=product.product&action_id=%s' % (base_url, product_id, action_id)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 10/3/13, 10:08 AM|
|Seen: 2300 times|
|Last updated: 3/31/15, 5:36 PM|