Quantcast
Channel: OpenERP Help - Individual question feed
Viewing all articles
Browse latest Browse all 59

[closed] open a form in a specified state : edit/browse

$
0
0
When opening a form from an function returning an action code as in the example below, I was wondering how could I explicitly specify the state of the form, wether it's in **edit** or **browse** mode ? 'type': "ir.actions.act_window" 'res_model': 'model' 'view_type': 'form' 'view_mode': 'form' 'target': 'current' 'context': context I noticed the following: - `'target' = 'new'`opens in edit mode (as when creating wizards..) - `'target' = 'current'` opens in browse mode (as in regular form views) - context does not seem to contain any specific instructions Thanks for your time. Nicolas

Viewing all articles
Browse latest Browse all 59

Trending Articles