diff options
| author | David Monjoie <dmo@odoo.com> | 2017-08-04 15:31:51 +0200 |
|---|---|---|
| committer | David Monjoie <dmo@odoo.com> | 2017-08-08 11:18:10 +0200 |
| commit | e2252c35c15df9ccf9132c72348723790d76a676 (patch) | |
| tree | 60aa4cc19c52f171accc26d8fdbd24c712cd010c /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 587751aa0dbd095db99e93398cf98d705c35679c (diff) | |
[FIX] web: handle create in many2many default_get
Previously, we did not handle the case where the result of the m2m
default get was a new record. In this case, we can't just send a
replace all command giving the ids since the new record has no id.
We decided to keep the replace all command even when it is empty
to stay consistent with the o2m implementation, even though saas-15
did not behave like that.
Steps to reproduce the bug:
- Enable lots in Iventory
- Choose a product which is a component of another (through mrp bom)
- Set this product as tracked by lot
- Set this product inventory quantity to 0
- Create a new manufacturing order for the product for which it is a
component
- Click on "Check Availability"
- Click on Produce
- You'll get an error as the id given to the onchange is a virtual one,
rather than a create which would not include an id.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
