diff options
| author | Raphael Collet <rco@openerp.com> | 2015-04-28 11:49:47 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2015-04-28 11:49:47 +0200 |
| commit | 0280a5f390a78360a3906ddf7f24f67efe60305f (patch) | |
| tree | d181f133a3280eaaa223ae31562dc87a207a8853 /addons/web/static/src/js/framework | |
| parent | 165575b6abc7ea368ad3043dcd4d2c591b84db20 (diff) | |
[FIX] fields: do not infer a related field to be required
Forcing a related field to be required causes some issues. Having such a field
in a one2many relation may block the creation of records in the field, as the
main record does not exist yet, and the field has no value.
It may also cause trouble if the field is stored: being required constrains the
corresponding column to be NOT NULL. Inserting a row will fail, because
related fields are currently determined *after* the row insertion.
Diffstat (limited to 'addons/web/static/src/js/framework')
0 files changed, 0 insertions, 0 deletions
