变更日志¶
Odoo 版本 16.0¶
翻译字段的翻译存储为 JSONB 值,使用 #97692 和 #101115。代码翻译不再存储在数据库中。它们变得静态,并在需要时从 PO 文件中提取。
search_count()
takes thelimit
argument into account with #95589. It limits the number of records to count, improving performance when a partial result is acceptable.
Odoo 在线版本 15.4¶
使用 #87527 的新API来刷新数据库和使缓存失效。已经在
odoo.models.Model
和odoo.api.Environment
中添加了新的方法,并且在每种情况下更加清晰明了。请参阅 SQL Execution 部分。
Odoo Online version 15.3¶
The argument
args
is renamed todomain
forsearch()
,search_count()
and_search()
. #83687filtered_domain()
conserves the order of the current recordset. #83687The methods
fields_get_keys()
andget_xml_id()
onModel
are deprecated. #83687The method
_mapped_cache()
is removed. #83687Remove the
limit
attribute ofOne2many
andMany2many
. #83687
Odoo 在线版本 15.2¶
字段上的特定索引类型:通过 #83274 和 #83015,开发人员现在可以定义PostgreSQL在字段上可以使用的索引类型。请参阅
odoo.fields.Field
的 index 属性。The
_sequence
attribute ofModel
is removed. Odoo lets PostgreSQL use the default sequence of the primary key. #82727The method
_write()
does not raise an error for non-existing records. #82727The
column_format
anddeprecated
attributes ofField
are removed. #82727