There's more...

Server-side processes are able to modify the context in which actions are run. For example, to get a record set where the dates are formatted according to the English format independent of the current user's language preference, you can do the following:

en_records = self.with_context(lang='en_US').search([]) 

For more details, refer to the Calling a method with a modified context recipe from Chapter 10, Advanced Server-Side Development Techniques.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.240.222