diff options
| author | Xavier ALT <xal@odoo.com> | 2019-09-11 21:15:34 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2019-09-20 12:23:09 +0000 |
| commit | c5fa4771fcec91c06a26d5103126a1373f962f0b (patch) | |
| tree | aa5c556e8812632e47b6146aaa0d58194bc48846 /odoo/sql_db.py | |
| parent | 1a3dcfeae658bf3d6411662cbb2c8c340c34f07f (diff) | |
[FIX] fields: default to ondelete='cascade' for required m2o fields on transient
TransientModel (wizards) can be annoying because if they have required
many2one fields, those fields will default to `ondelete='restrict'`,
preventing user to delete the comodel records without deleting the
transient model records first.
To improve such case, we default to `ondelete='cascade'` for required
many2one field on a TransientModel (unless specified otherwise)
closes odoo/odoo#36738
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'odoo/sql_db.py')
0 files changed, 0 insertions, 0 deletions
