Odoo Help
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.
To create a link from one widget to a page or action of another menu?
```
(...)
template : "home_action",
events : {
"click .estoque_icone" : "open_stock"
},
init : function () {
this._super.apply(this, arguments);
},
open_stock : function () {
// It turns out a permission error when entering the id "string"
this.do_action(84);
}
(...)
```
the template:
```
<div t-name="home_action">
<div class="home_menu">
<a href="#">
<div class="estoque_icone thumbnail">
<img src="/example/static/src/img/estoque.png" />
<div class="estoque_descricao">
<h3>name</h3>
<p>Example</p>
</div>
</div>
</a>
<a href="#">
<div class="configuracoes_icone thumbnail">
<img src="/example/static/src/img/config.png" />
<div class="configuracoes_descricao">
<h3>name</h3>
<p>Example.</p>
</div>
</div>
</a>
</div>
</div>
```
I need you to open the link to complete page of action (as if you had clicked on the menu item).
I'm from Brazil, do not speak English.
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.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 11/30/14, 10:16 AM |
Seen: 635 times |
Last updated: 3/16/15, 8:10 AM |
Can't you use a button tag and then display it as a link?
Yes, but the button will display the content of the action within the current page or in a modal window, I need the action appears like a click in the top menu, with the same sidebar, and the menu marked as clicked
On button, the page displayed will be dependent on the action's target. Usually you put 'new' as the target but you can also put 'current', which will display the page within the view manager. However I'm not sure how to achieve the "menu marked as clicked" part. Any reason why you don't just create a menu and call a specific action instead of creating a new widget?