diff --git a/web_dialog_size/README.rst b/web_dialog_size/README.rst
index 4437d9a4a..08b26c7c4 100644
--- a/web_dialog_size/README.rst
+++ b/web_dialog_size/README.rst
@@ -14,13 +14,13 @@ Web Dialog Size
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
- :target: https://github.com/OCA/web/tree/12.0/web_dialog_size
+ :target: https://github.com/OCA/web/tree/13.0/web_dialog_size
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_dialog_size
+ :target: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_dialog_size
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/162/12.0
+ :target: https://runbot.odoo-community.org/runbot/162/13.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -49,7 +49,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -96,6 +96,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-This module is part of the `OCA/web `_ project on GitHub.
+This module is part of the `OCA/web `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/web_dialog_size/__manifest__.py b/web_dialog_size/__manifest__.py
index b1ed4884d..4e30520cc 100644
--- a/web_dialog_size/__manifest__.py
+++ b/web_dialog_size/__manifest__.py
@@ -3,28 +3,22 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
- 'name': "Web Dialog Size",
- 'summary': """
+ "name": "Web Dialog Size",
+ "summary": """
A module that lets the user expand a
dialog box to the full screen width.""",
- 'author': "ACSONE SA/NV, "
- "Therp BV, "
- "Siddharth Bhalgami,"
- "Tecnativa, "
- "Amaris, "
- "Odoo Community Association (OCA)",
- 'website': "http://github.com/OCA/web",
- 'category': 'web',
- 'version': '13.0.1.0.0',
- 'license': 'AGPL-3',
- 'depends': [
- 'web',
- ],
- 'qweb': [
- 'static/src/xml/web_dialog_size.xml',
- ],
- 'data': [
- 'templates/assets.xml',
- ],
- 'installable': True,
+ "author": "ACSONE SA/NV, "
+ "Therp BV, "
+ "Siddharth Bhalgami,"
+ "Tecnativa, "
+ "Amaris, "
+ "Odoo Community Association (OCA)",
+ "website": "http://github.com/OCA/web",
+ "category": "web",
+ "version": "13.0.1.0.0",
+ "license": "AGPL-3",
+ "depends": ["web"],
+ "qweb": ["static/src/xml/web_dialog_size.xml"],
+ "data": ["templates/assets.xml"],
+ "installable": True,
}
diff --git a/web_dialog_size/i18n/web_dialog_size.pot b/web_dialog_size/i18n/web_dialog_size.pot
index 513879ed3..355837b3f 100644
--- a/web_dialog_size/i18n/web_dialog_size.pot
+++ b/web_dialog_size/i18n/web_dialog_size.pot
@@ -1,12 +1,12 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * web_dialog_size
+# * web_dialog_size
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 12.0\n"
+"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
-"Last-Translator: <>\n"
+"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -17,4 +17,3 @@ msgstr ""
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
msgid "System Parameter"
msgstr ""
-
diff --git a/web_dialog_size/models/ir_config_parameter.py b/web_dialog_size/models/ir_config_parameter.py
index 4de06e322..493a4f6fb 100644
--- a/web_dialog_size/models/ir_config_parameter.py
+++ b/web_dialog_size/models/ir_config_parameter.py
@@ -1,7 +1,7 @@
# Copyright 2018 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-from odoo.models import api, Model
+from odoo.models import Model, api
from odoo.tools.safe_eval import const_eval
@@ -13,5 +13,6 @@ class IrConfigParameter(Model):
get_param = self.sudo().get_param
return {
"default_maximize": const_eval(
- get_param("web_dialog_size.default_maximize", "False"))
+ get_param("web_dialog_size.default_maximize", "False")
+ )
}
diff --git a/web_dialog_size/static/description/index.html b/web_dialog_size/static/description/index.html
index b35dab812..86fed7d88 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. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

A module that lets the user expand/restore the dialog box size through a button
in the upper right corner (imitating most windows managers).
It also adds draggable support to the dialogs.
@@ -401,7 +401,7 @@ It also adds draggable support to the dialogs.
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -432,6 +432,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
Ernesto Tejeda
+
Sudhir Arya <sudhir@erpharbor.com>
@@ -441,7 +442,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-
This module is part of the OCA/web project on GitHub.
+
This module is part of the OCA/web project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
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 e83bbcea5..63b6af62b 100644
--- a/web_dialog_size/static/src/js/web_dialog_size.js
+++ b/web_dialog_size/static/src/js/web_dialog_size.js
@@ -16,7 +16,7 @@ Dialog.include({
return this._super.apply(this, arguments).then(function () {
self.$modal.find('.dialog_button_extend').on('click', self.proxy('_extending'));
self.$modal.find('.dialog_button_restore').on('click', self.proxy('_restore'));
- return (function(r) {
+ return config.then(function(r) {
if (r.default_maximize) {
self._extending();
} else {
diff --git a/web_dialog_size/tests/test_web_dialog_size.py b/web_dialog_size/tests/test_web_dialog_size.py
index 6d6014d0d..53e916dd8 100644
--- a/web_dialog_size/tests/test_web_dialog_size.py
+++ b/web_dialog_size/tests/test_web_dialog_size.py
@@ -9,12 +9,12 @@ class TestWebDialogSize(TransactionCase):
super(TestWebDialogSize, self).setUp()
def test_get_web_dialog_size_config(self):
- obj = self.env['ir.config_parameter']
+ obj = self.env["ir.config_parameter"]
- self.assertFalse(obj.get_web_dialog_size_config()['default_maximize'])
+ self.assertFalse(obj.get_web_dialog_size_config()["default_maximize"])
obj.set_param("web_dialog_size.default_maximize", "True")
- self.assertTrue(obj.get_web_dialog_size_config()['default_maximize'])
+ self.assertTrue(obj.get_web_dialog_size_config()["default_maximize"])
obj.set_param("web_dialog_size.default_maximize", "False")
- self.assertFalse(obj.get_web_dialog_size_config()['default_maximize'])
+ self.assertFalse(obj.get_web_dialog_size_config()["default_maximize"])