Files
odoo_source/addons
Raphael Collet ea3e39506a [IMP] models: use slots for BaseModel
This restricts the attributes of a BaseModel instance to `env`, `_ids`
and `_prefetch_ids`.  This way, one can only assign fields on a record;
other assignments are programming errors.

This also reduces the memory footprint of records from 168 to 64 bytes
(-62%), and makes their instanciation faster.

closes odoo/odoo#51075

Related: odoo/enterprise#10529
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-05-18 09:51:43 +00:00
..
2020-05-05 10:05:12 +00:00
2020-05-14 13:59:10 +02:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-05-05 12:40:10 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-04-30 13:59:44 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-04-30 07:20:07 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-03-31 16:41:23 +00:00
2020-05-05 10:05:12 +00:00
2020-05-14 13:59:10 +02:00
2020-05-18 09:51:43 +00:00
2020-05-05 10:05:12 +00:00