Odoo Help

2

0
1 Answer
2
Avatar

nazarii Ukraine

--nazarii--

948
| 6 5 8
Ukraine
--nazarii--
nazarii Ukraine
10/4/13, 6:19 PM

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)
2 Comments
Atchuthan - Technical Consultant, Sodexis Inc India
10/7/13, 2:57 AM

Thanks,

link = '%s/?db=%s#id=%s&view_type=form&model=project.task' % (base_url, database_name, object_id)

How to get the Database name?

nazarii Ukraine
10/8/13, 5:24 PM

You can get it from cr.dbname.

Ask a Question
Tags
Keep Informed
1 follower(s)
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