December 2018
Beginner to intermediate
404 pages
10h 14m
English
We can inspect the current environment with the following code:
>>> self.env <openerp.api.Environment object at 0xb3f4f52c>
The execution environment in self.env has the following attributes available:
The environment also provides access to the registry where all of the installed models are available. For example, self.env['res.partner'] returns a reference to the partner model. We can then use search() or browse() on it to retrieve recordsets:
>>> self.env['res.partner'].search([('name', 'like', ...Read now
Unlock full access