Skip to content

Commit

Permalink
[MIG] web_chatter_position: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
unaiberis committed Nov 26, 2024
1 parent 8e4405c commit d5d6f29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion web_chatter_position/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion web_chatter_position/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
8 changes: 4 additions & 4 deletions web_chatter_position/static/src/js/form_chatter_position.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// 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");
var FormController = require("web.FormController");
var FormRenderer = require("web.FormRenderer");

var ChatterPositionFormController = FormController.include({
renderButtons: function() {
renderButtons: function () {
this._super.apply(this, arguments);
if (this.$buttons) {
this.$buttons.on(
Expand All @@ -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()
Expand All @@ -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");
Expand Down

0 comments on commit d5d6f29

Please sign in to comment.