Sign in
Try it free
  • Apps
    Websites
    Build great user experience
    • Website Builder
    • eCommerce
    • Blogs
    • Forums
    • Slides
    • Live Chat
    Sales
    Boost your success rate
    • Sales
    • CRM
    • Invoicing
    • Point of Sale
      • Shops
      • Restaurants
      • Hardware
    • Subscriptions
    • Sign
    Operations
    It's all about efficiency
    • Accounting
    • Project
    • Human Resources
      • Recruitment
      • Employees
      • Expenses
      • Appraisal
      • Fleet
      • Leaves
    • Inventory
    • Purchase
    • Manufacturing
      • MRP
      • PLM
      • Maintenance
      • Quality
    • Helpdesk
    Productivity Tools
    Great Tools = Happy People
    • Communication
      • Discuss
      • Mailing Lists
      • Notes
    • Timesheet
    • Email Marketing
    • Events
    • Survey
    • Appointments
    • Marketing Automation
    Third party apps | Odoo Studio | Odoo Cloud Platform NEW
  • Tour
  • Pricing
  • Community
  • Docs

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.

Take the tour
Help
  • Trending
  • Newest
  • People
  • Tags
  • Badges
Ask a Question
0

To create a link from one widget to a page or action of another menu?

javascript action actions templates
By
Diogo Cabral da Silva
on 11/30/14, 10:16 AM • 635 views

```
(...)
        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.

  • Flag
  • Reply
  • Comment
  • Share

Can't you use a button tag and then display it as a link?

Ivan
on 11/30/14, 10:31 PM

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

Diogo Cabral da Silva
on 11/30/14, 10:44 PM

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?

Ivan
on 11/30/14, 11:37 PM

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

Question tools

Thanks for your subscription!
2 follower(s)

Stats

Asked: 11/30/14, 10:16 AM
Seen: 635 times
Last updated: 3/16/15, 8:10 AM
Community
  • Github
  • Download
  • Runbot
  • Translations
  • Mailing Lists
  • Forum
Services
  • Odoo Cloud Platform
  • Support
  • Upgrade
  • Find a partner
  • Become a partner
  • Training center
  • Education
  • Security
About us
  • Our company
  • Contact
  • Events
  • Blog
  • Customers
  • Jobs
  • Legal | Privacy
  • English
    • 简体中文
    • Nederlands
    • Français
    • Deutsch
    • Italiano
    • Português (BR)
    • Español

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Live Webinar on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Watch now