documentation icon indicating copy to clipboard operation
documentation copied to clipboard

[IMP] orm : add info about boolean default

Open asno-odoo opened this issue 2 years ago • 1 comments

When a default value for boolean is set as False, the values of new column for existing records is set to NULL. In python, FALSE and NULL might mean same thing in certain contexts but its not the case for Sql(we allow to add sql constraints).

concerned code: https://github.com/odoo/odoo/blob/15.0/odoo/models.py#L2767

asno-odoo avatar Dec 14 '23 16:12 asno-odoo