[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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user