diff --git a/web_dialog_size/README.rst b/web_dialog_size/README.rst index 9ecd9fb73..30d03ba9a 100644 --- a/web_dialog_size/README.rst +++ b/web_dialog_size/README.rst @@ -7,7 +7,7 @@ Web Dialog Size !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:0d044de8c4c28572d56f9256ed19f1467d687ca3134941b0969ad305a87bb6cd + !! source digest: sha256:fbbea6bdc60af47c7c0aedf855bceae0db4acabd389badf71be2fbe90d1861f7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -92,6 +92,9 @@ Contributors * Sudhir Arya * Pierre Pizzetta * Mantas Šniukas +* `Trobz `_: + + * Tris Doan Maintainers ~~~~~~~~~~~ diff --git a/web_dialog_size/readme/CONTRIBUTORS.rst b/web_dialog_size/readme/CONTRIBUTORS.rst index 5f67550d1..3f2695b53 100644 --- a/web_dialog_size/readme/CONTRIBUTORS.rst +++ b/web_dialog_size/readme/CONTRIBUTORS.rst @@ -14,3 +14,6 @@ * Sudhir Arya * Pierre Pizzetta * Mantas Šniukas +* `Trobz `_: + + * Tris Doan diff --git a/web_dialog_size/static/description/index.html b/web_dialog_size/static/description/index.html index 555f35757..80c4e6a89 100644 --- a/web_dialog_size/static/description/index.html +++ b/web_dialog_size/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:0d044de8c4c28572d56f9256ed19f1467d687ca3134941b0969ad305a87bb6cd +!! source digest: sha256:fbbea6bdc60af47c7c0aedf855bceae0db4acabd389badf71be2fbe90d1861f7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

A module that lets the user expand/restore the dialog box size through a button @@ -444,6 +444,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

  • Sudhir Arya <sudhir@erpharbor.com>
  • Pierre Pizzetta <pierre@devreaction.com>
  • Mantas Šniukas <mantas@vialaurea.lt>
  • +
  • Trobz:
      +
    • Tris Doan
    • +
    +
  • diff --git a/web_dialog_size/static/src/js/web_dialog_size.js b/web_dialog_size/static/src/js/web_dialog_size.js index 2cdbea4d0..b582ece33 100644 --- a/web_dialog_size/static/src/js/web_dialog_size.js +++ b/web_dialog_size/static/src/js/web_dialog_size.js @@ -2,6 +2,7 @@ odoo.define("web_dialog_size.web_dialog_size", function (require) { "use strict"; var Dialog = require("web.Dialog"); + var session = require("web.session"); Dialog.include({ willStart: function () { @@ -12,7 +13,11 @@ odoo.define("web_dialog_size.web_dialog_size", function (require) { .on("click", self.proxy("_extending")); self.$modal .find(".dialog_button_restore") - .on("click", self.proxy("_restore")); + .on("click", self.proxy("_restore")) + .css("display", "none"); + if (session.default_maximize) { + self._extending(); + } }); },