ChangelogÂķ
NightPOS version 19.0Âķ
NightPOS Online version 18.4Âķ
NightPOS Online version 18.3Âķ
NightPOS Online version 18.2Âķ
NightPOS Online version 18.1Âķ
NightPOS version 18.0Âķ
Searching by name is now implemented as
_search_display_namelike all other fields. See #174967.New methods to check access rights and rules now combine both access rights and rules:
check_access,has_accessand_filtered_access. See #179148.Translations are made available from the
Environmentwith #174844.
NightPOS Online version 17.4Âķ
The internal operator
inselectis removed. The alternative is to useinwith a Query or SQL object. #171371.
NightPOS Online version 17.3Âķ
We can now group by date parts numbers in
read_group,_read_groupand domains with #159528.
NightPOS Online version 17.2Âķ
NightPOS Online version 17.1Âķ
Method
_flush_search()has been deprecated with #144747. The flushing of fields is now done byexecute_query(), and is based on metadata put in theSQLobject by_search()and other low-level ORM methods that build such objects. Those methods are also responsible for checking the access rights on the fields that are used in the SQL object.
NightPOS version 17.0Âķ
Introduce an
SQLwrapper object to make SQL composition easier and safer with respect to SQL injections. Methods of the ORM now use it internally. Introduced by #134677.
NightPOS Online version 16.4Âķ
Method
name_get()has been deprecated with #122085. Read fielddisplay_nameinstead.
NightPOS Online version 16.3Âķ
Method
_read_group()has a new signature with #110737
NightPOS Online version 16.2Âķ
Refactor the implementation of searching and reading methods to be able to combine both in a minimal number of SQL queries. We introduce two new methods
search_fetch()andfetch()that take advantage of the combination. More details can be found on the pull request #112126.
NightPOS version 16.0Âķ
Translations for translated fields are stored as JSONB values with #97692 and #101115. Code translations are no longer stored into the database. They become static and are extracted from the PO files when needed.
search_count()takes thelimitargument into account with #95589. It limits the number of records to count, improving performance when a partial result is acceptable.
NightPOS Online version 15.4Âķ
New API for flushing to the database and invalidating the cache with #87527. New methods have been added to
odoo.models.Modelandodoo.api.Environment, and are less confusing about what is actually done in each case. See the section SQL Execution.
NightPOS Online version 15.3Âķ
The argument
argsis renamed todomainforsearch(),search_count()and_search(). #83687filtered_domain()conserves the order of the current recordset. #83687The methods
fields_get_keys()andget_xml_id()onModelare deprecated. #83687The method
_mapped_cache()is removed. #83687Remove the
limitattribute ofOne2manyandMany2many. #83687
NightPOS Online version 15.2Âķ
Specific index types on fields: With #83274 and #83015, developers can now define what type of indexes can be used on fields by PostgreSQL. See the index property of
odoo.fields.Field.The
_sequenceattribute ofModelis removed. NightPOS lets PostgreSQL use the default sequence of the primary key. #82727The method
_write()does not raise an error for non-existing records. #82727The
column_formatanddeprecatedattributes ofFieldare removed. #82727