Skip to Content
Menu
This question has been flagged
7531 Views

I'm working on contracts management module where the user must choose the contrat which he/she has to work on.

The scenario is:

- The user clicks on the parent menu (the module menu on the top menus bar) then a wizard is dispalyed to choose the contract

- After some processing i have to return a window action to display a list view (of contract model) matching a certain domain

Here is an example of the returned action

return {     
     'type': 'ir.actions.act_window',
     'name': 'Contracts',
     'res_model': 'gc.contract',
     'view_type': 'form',
     'view_mode': 'tree,form',
     'target': '',
}

I've tried all available values for the target attribute but it does not work as i want.

The  new, inline and inlineview value are out of scope for me here, with current it displays the contract's list but the form name is wrong for example if the user is working on the accounting module (i.e Customer Refunds) then i get Customer Refunds/Contracts as form name and the Contacts menu on the left panel is not highlighted.

How can i solve this problem??

Avatar
Discard
Related Posts Replies Views Activity
1
Apr 24
502
0
Apr 24
399
4
Nov 23
4245
0
Oct 23
378
0
Dec 22
1334