From b8d53f4bbecca57db49e33899e59045916fd3cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Voet=20=28ryv=29?= Date: Tue, 22 Feb 2022 11:08:06 +0100 Subject: [PATCH] [IMP] orm: update changelog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/documentation#6463 X-original-commit: f1960a250c134293bf81787b7353bea454945e80 Signed-off-by: Rémy Voet (ryv) --- content/developer/reference/backend/orm.rst | 3 --- .../reference/backend/orm/changelog.rst | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/content/developer/reference/backend/orm.rst b/content/developer/reference/backend/orm.rst index 731367438..e1f68c356 100644 --- a/content/developer/reference/backend/orm.rst +++ b/content/developer/reference/backend/orm.rst @@ -117,9 +117,6 @@ Fields .. autoclass:: Field() -.. .. autoattribute:: Field._slots - :annotation: - .. _reference/fields/basic: Basic Fields diff --git a/content/developer/reference/backend/orm/changelog.rst b/content/developer/reference/backend/orm/changelog.rst index 45cb6cc68..85842ea22 100644 --- a/content/developer/reference/backend/orm/changelog.rst +++ b/content/developer/reference/backend/orm/changelog.rst @@ -34,6 +34,8 @@ Odoo version 16.0 and `#101115 `_. Code translations are no longer stored into the database. They become static and are extracted from the PO files when needed. +- :meth:`~odoo.models.Model.search_count` takes the :attr:`limit` argument into account with `#95589 `_. + It limits the number of records to count, improving performance when a partial result is acceptable. Odoo Online version 15.4 ======================== @@ -44,6 +46,17 @@ Odoo Online version 15.4 and are less confusing about what is actually done in each case. See the section :ref:`SQL Execution `. +Odoo Online version 15.3 +======================== + +- The argument `args` is renamed to `domain` for :meth:`~odoo.models.Model.search`, :meth:`~odoo.models.Model.search_count` + and :meth:`~odoo.models.Model._search`. `#83687 `_ +- :meth:`~odoo.models.Model.filtered_domain` conserves the order of the current recordset. `#83687 `_ +- :meth:`~odoo.models.Model.browse` does not accept :class:`str` as `ids`. `#83687 `_ +- The methods :meth:`~odoo.models.Model.fields_get_keys` and :meth:`~odoo.models.Model.get_xml_id` on :class:`~odoo.models.Model` are deprecated. `#83687 `_ +- The method :meth:`~odoo.models.Model._mapped_cache` is removed. `#83687 `_ +- Remove the :attr:`limit` attribute of :class:`~odoo.fields.One2many` and :class:`~odoo.fields.Many2many`. `#83687 `_ + Odoo Online version 15.2 ======================== @@ -51,3 +64,6 @@ Odoo Online version 15.2 `#83015 `_, developers can now define what type of indexes can be used on fields by PostgreSQL. See the :ref:`index property ` of `odoo.fields.Field`. +- The :attr:`_sequence` attribute of :class:`~odoo.models.Model` is removed. Odoo lets PostgreSQL use the default sequence of the primary key. `#82727 `_ +- The method :meth:`~odoo.models.Model._write` does not raise an error for non-existing records. `#82727 `_ +- The :attr:`column_format` and :attr:`deprecated` attributes of :class:`~odoo.fields.Field` are removed. `#82727 `_