[FIX] web: editable list: edit group with create=0

This rev. disables the 'create' action in the form view reached
when clicking on the 'Edit' button on a group in an grouped list.

closes odoo/odoo#36384

Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
This commit is contained in:
Aaron Bohy
2019-09-03 13:37:47 +00:00
parent c132a8c364
commit ae50f2cbbb
2 changed files with 2 additions and 0 deletions
@@ -599,6 +599,7 @@ var ListController = BasicController.extend({
_onEditGroupClicked: function (ev) {
ev.stopPropagation();
this.do_action({
context: {create: false},
type: 'ir.actions.act_window',
views: [[false, 'form']],
res_model: ev.data.record.model,
@@ -2238,6 +2238,7 @@ QUnit.module('Views', {
intercepts: {
do_action: function (event) {
assert.deepEqual(event.data.action, {
context: {create: false},
res_id: 2,
res_model: 'res_currency',
type: 'ir.actions.act_window',