Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8861515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:30:32+00:00 2026-06-14T15:30:32+00:00

How can one open a particular object when pressing on a menu item or

  • 0

How can one open a particular object when pressing on a menu item or a button? It’s useful if you want to have a sort a configuration-like object (only one object is needed to hold data e.g. username and password).

I’ve tried playing with view_init method and active_id context key, but with no luck. Can somebody point me to the right direction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:30:34+00:00Added an answer on June 14, 2026 at 3:30 pm

    I had a similar issue, and found a solution :
    in your ir.actions.act_window definition (in XML), try to add the res_id field with the id of your record you want to show. If this is id is calculated, perhaps you can use the “eval” attribute of the same field to get it.

    For example :

    <field name="res_id">5</field>
    

    Or (i don’t know if it works)

    <field name="res_id" eval="your_func_getting_res_id"/>
    

    Of course for 2nd method, don’t forget to define your function.

    It works for me when i wanted to return an ir.actions.act_window in a method called by a button (method defined in python, so i got easily the id i wanted).

    Hope it helps you or someone else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How i can open one Popover Controller from another Popover Controller in iPad?I want
In recent versions of python, one can use something like with open('abc.txt') as f:
If I have several OS-X Terminal.app windows open, how can I move one Terminal
Hey can any one tell me should i need open a port for outgoing
Hi can any one suggest tool for migrating from TFS to TFS preferred Open
How Can i force one Mootools ToolTip (Tip) to Open? Regards, Pedro
When i call window.open, I can include a list of parameters. One of these
Hi all i have written a small code to open a particular text file.
I want in my app to not to open some particular sites in web
Can any one help in storing the time spent by user on a particular

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.