diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-08-12 15:16:10 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-08-20 14:09:01 +0000 |
| commit | 064ebe3b1aa359655f7e4966e682c15cc711e9f9 (patch) | |
| tree | 603b51b77aa2f8dcb5c39922b9fab28ed61d6fe0 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 72d9167c3af2a18700f607913b420e5a0ddb9a52 (diff) | |
[IMP] fields, test_new_api: add ondelete support for m2m
Each model of the relation can define `ondelete` for its `column2` foreign key.
This way the behavior is similar to m2o where the target of the `ondelete` is
the `comodel` foreign key.
Some models were already defining `ondelete` 'restrict' on m2m fields and after
review it appears the behavior introduced in this commit is the expected
behavior for them.
The 'restrict' from product.product has to be removed however because the rest
of the code needs adaptation now that it is properly restricted. These changes
will be done on a separate PR.
closes odoo/odoo#35654
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
