diff --git a/addons/web/static/src/js/views/form/form_controller.js b/addons/web/static/src/js/views/form/form_controller.js index 7de919a0c2c..498fb29453b 100644 --- a/addons/web/static/src/js/views/form/form_controller.js +++ b/addons/web/static/src/js/views/form/form_controller.js @@ -368,8 +368,10 @@ var FormController = BasicController.extend({ * @private */ _toReadOnlyMode: function () { - this.$el.removeClass('o_form_editable'); - this.update({mode: "readonly"}, {reload: false}); + if (this.mode !== 'readonly') { + this.$el.removeClass('o_form_editable'); + this.update({mode: "readonly"}, {reload: false}); + } }, /** * Updates the controller's title according to the new state