From d6126cfacfade655893d4dce45d1b32421e0c0a0 Mon Sep 17 00:00:00 2001 From: Unai Beristain Date: Tue, 26 Nov 2024 09:52:40 +0100 Subject: [PATCH] [MIG] web_chatter_position: Migration to 14.0 --- web_chatter_position/__manifest__.py | 2 +- web_chatter_position/models/res_users.py | 2 +- .../static/src/js/form_chatter_position.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web_chatter_position/__manifest__.py b/web_chatter_position/__manifest__.py index 001e71c00bc3..e047684f39ca 100644 --- a/web_chatter_position/__manifest__.py +++ b/web_chatter_position/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Chatter Position", "summary": "Add an option to change the chatter position", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "author": "Hynsys Technologies, Camptocamp, Odoo Community Association (OCA)", "website": "https://github.com/OCA/web", "license": "LGPL-3", diff --git a/web_chatter_position/models/res_users.py b/web_chatter_position/models/res_users.py index 2fcb7bb5502a..eab701782409 100644 --- a/web_chatter_position/models/res_users.py +++ b/web_chatter_position/models/res_users.py @@ -14,7 +14,7 @@ class ResUsers(models.Model): ) def __init__(self, pool, cr): - """ Override of __init__ to add access rights. + """Override of __init__ to add access rights. Access rights are disabled by default, but allowed on some specific fields defined in self.SELF_{READ/WRITE}ABLE_FIELDS. """ diff --git a/web_chatter_position/static/src/js/form_chatter_position.js b/web_chatter_position/static/src/js/form_chatter_position.js index 1658bb4d7301..dbcb119f8820 100644 --- a/web_chatter_position/static/src/js/form_chatter_position.js +++ b/web_chatter_position/static/src/js/form_chatter_position.js @@ -1,7 +1,7 @@ // Copyright 2022 Hynsys Technologies // License LGPL - 3.0 or later(http://www.gnu.org/licenses/lgpl). -odoo.define("web_chatter_position.ChatterPositionFormController", function(require) { +odoo.define("web_chatter_position.ChatterPositionFormController", function (require) { "use strict"; var config = require("web.config"); @@ -9,7 +9,7 @@ odoo.define("web_chatter_position.ChatterPositionFormController", function(requi var FormRenderer = require("web.FormRenderer"); var ChatterPositionFormController = FormController.include({ - renderButtons: function() { + renderButtons: function () { this._super.apply(this, arguments); if (this.$buttons) { this.$buttons.on( @@ -20,7 +20,7 @@ odoo.define("web_chatter_position.ChatterPositionFormController", function(requi } }, - _onChatterPosition: function() { + _onChatterPosition: function () { if (this.$el.offsetParent().hasClass("o_chatter_position_bottom")) { this.$el .offsetParent() @@ -34,7 +34,7 @@ odoo.define("web_chatter_position.ChatterPositionFormController", function(requi }); FormRenderer.include({ - _applyFormSizeClass: function() { + _applyFormSizeClass: function () { const formEl = this.$el[0]; if (config.device.size_class <= config.device.SIZES.XS) { formEl.classList.add("o_xxs_form_view");