Quantcast
Viewing latest article 18
Browse Latest Browse All 59

Custom Button & Action problem - Showing related Issues by related Project

Basically first-time OE developer here with a problem on buttons. I have a module that inherits from product, and has a related project. I would like to have a button to click that shows Issues that have the same project. ![Related Issues](http://www.thinkwelldesigns.com/OpenERP/capture1.png) So clicking "Related Issues" should load: ![Issues](http://www.thinkwelldesigns.com/OpenERP/capture.png) But I'm having trouble getting the Search button to show criteria as occurs when you click the Meetings / Calls / Opportunities buttons on the customers form, for example. Here's the code I'm working with so far, but likely with mistakes in Action & Button!Appliance Issuesproject.issueir.actions.act_windowformtree,form[('project_id','=', active_id)]

Click to create a new issue.

This is the list of all the Issues related to this Appliance Server.

Edit: 02/05/14 Ok, I did learn something here. If I change this line [('project_id','=', active_id)] To this: [('project_id','=', 'martinsauto')] Then the lookup works as I expected. 'martinsauto' is the text string value of the 'name' field. So how can I access the string value of the 'name' field? I tried the following, but it doesn't work... [('project_id','=', active_id.name)] Any help here for a beginner? TIA!

Viewing latest article 18
Browse Latest Browse All 59

Trending Articles