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…
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…
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…
官方ORM API开发文档:https://www.odoo.com/documentation/10.0/reference/orm.html Recordsets(记录集) New in version 8.0: This page documents the New API added in Odoo 8.0 which should be the primary development API going forward. It also provides information abo…
ODOO 源代码安装要求 ref:http://www.odoo.com/documentation/10.0/setup/install.html#setup-install-source python 版本是2.7.9 [ Note if Python is already installed, make sure it is 2.7.9, previous versions are less convenient and 3.x versions are not compatible wi…