Odoo Development Essentials by Daniel Reis

Odoo Development Essentials by Daniel Reis

Author:Daniel Reis [Reis, Daniel]
Language: eng
Format: epub, pdf
Publisher: Packt Publishing
Published: 2015-04-05T21:00:00+00:00


We have information on the current user ID and the language and time zone preferences for the user session.

When using an action on the client, such as clicking on a button, information about the currently selected records is added to the context:

the active_id key is the ID of the selected record on a form,

the active_model key is the model of the current record,

the active_ids key is the list of IDs selected in the tree/list view.

The context can also be used to provide default values on fields or to enable filters on the target view. To set on the user_id field a default value corresponding to the session's current user we would use:

{'default_user_id': uid}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.