Fields Basic fields class openerp.fields.Field(string=None, **kwargs) The field descriptor contains the field definition, and manages accesses and assignments of the corresponding field on records. The following attributes may be provided when instan…
Other recordset operations Recordsets are iterable(可迭代的) so the usual Python tools are available for transformation (map(), sorted(), ifilter(), ...) however these return either a list or an iterator, removing the ability(能力) to call methods on their…
Environment The Environment stores various contextual data(上下文数据 ) used by the ORM: the database cursor (for database queries), the current user (for access rights checking) and the current context (storing arbitrary metadata). The environment also s…
Unfortunately Odoo documentation doesn’t seem to include any information about adding new configuration options to Odoo. So let’s fill in the gaps. Defining a model First of all, you need to define a new model inheriting from res.config.settings: cla…
转自国外牛人博客:http://ludwiktrammer.github.io/odoo/custom-settings-odoo.html Defining custom settings in Odoo Unfortunately Odoo documentation doesn’t seem to include any information about adding new configuration options to Odoo. So let’s fill in the gaps…