Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] web_dialog_size: Migration to 18.0 #3042

Merged
merged 36 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f609ea0
[ADD] module web_dialog_size
anthony-muschang Feb 26, 2015
594c50e
[IMP] web_dialog_size: Select default dialog size by config
pedrobaeza Apr 6, 2016
48c2584
[FIX] web_dialog_size: do not expand by default and correctly honor d…
sbidoul May 27, 2016
1ae07f0
[MIG] web_dialog_siza: Migrate to v9.0
bud-e Jun 12, 2016
e79f192
[10.0-MIG] web_dialog_size for v10.0
bud-e Feb 4, 2017
d00ff9e
[FIX+IMP] web_dialog_size
wpichler Sep 18, 2017
4a810b2
[FIX] web_dialog_size: default_maximize
chienandalu Dec 19, 2017
9345390
[MIG] Migrate web_dialog_size module to v11
qtheuret Feb 17, 2018
782c50e
[FIX] #921 Fixed issue when discard a modal with draggable element
qtheuret May 15, 2018
be74a0a
[FIX] web_dialog_size: Fix usage for non-admins and reduce calls (#954)
yajo Jun 13, 2018
1d70b87
[11.0][FIX] web_dialog_size: Draggable Dialog
Tardo Jul 18, 2018
ef35b22
Fix default_maximize check
Sep 21, 2018
0894aba
[MIG] web_dialog_size: Migration to 12.0
ernestotejeda Nov 22, 2018
41dbec7
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
5f2571d
[MIG] Migrated web_dialog_size module in v13.
sudhir-erpharbor Oct 4, 2019
33649ba
[IMP] Improved code and solved the bug of two arrows in dialog.
sudhir-erpharbor Oct 11, 2019
b89ea36
[FIX] web_dialog_size js warnings
emagdalenaC2i Oct 14, 2019
045510d
[IMP] pre-commit run after update
Jan 24, 2020
077550d
pre-commit update: prettier xml indent
sbidoul Mar 2, 2020
cb16e42
[IMP] web_dialog_size: black, isort, prettier
pierre-pizzetta Oct 16, 2020
5dac993
[MIG] web_dialog_size: Migration to 14.0
pierre-pizzetta Oct 16, 2020
2f9ad65
[IMP] web_dialog_size: add task to roadmap
Feb 4, 2021
d69f7c6
Added translation using Weblate (French)
Yvesldff May 14, 2021
609aeb2
Added translation using Weblate (Dutch)
bosd May 17, 2021
0727e5a
Added translation using Weblate (Spanish)
ValentinVinagre May 25, 2021
a50b2e0
Added translation using Weblate (Italian)
alessandro-fiorino Aug 13, 2021
9b0ec3a
Added translation using Weblate (German)
Corneliuus Oct 13, 2021
000342b
[15.0][MIG] web_dialog_size: migration to 15.0
Mantux11 Mar 18, 2022
e0d6f11
[IMP] web_dialog_size: Migration to 16.0
tarteo Mar 2, 2023
c54f972
Translated using Weblate (Italian)
mymage Nov 27, 2023
5495f4a
[FIX] web_dialog_size: Fixes on legacy Dialogs
CarlosRoca13 Jun 11, 2024
5b12250
[IMP] web_dialog_size: pre-commit auto fixes
CarlosRoca13 Aug 13, 2024
2f6c486
[MIG] web_dialog_size: Migration to 17.0
CarlosRoca13 Aug 16, 2024
583aabb
[UPD] Update web_dialog_size.pot
Aug 19, 2024
f3a6021
[BOT] post-merge updates
OCA-git-bot Aug 19, 2024
4403ef9
[MIG] web_dialog_size: Migration to 18.0
jeromeguerriat-msf Dec 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions web_dialog_size/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
===============
Web Dialog Size
===============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a861bfd49e89d43c9b0dea89a15318450f23f5a9fc30747b5fdddeb6d291120c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
: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/17.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-17-0/web-17-0-web_dialog_size
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
:local:

Configuration
=============

By default, the module respects the caller's ``dialog_size`` option. If
you want to set dialog boxes maximized by default, you need to:

1. Go to *Settings -> Technical -> Parameters -> System Parameters*

2. | Add a new record with the text *web_dialog_size.default_maximize*
in
| the *Key* field and the text *True* in the *Value* field

Known issues / Roadmap
======================

- Allow setting default dialog size per user.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_dialog_size%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* ACSONE SA/NV
* Therp BV
* Siddharth Bhalgami
* Tecnativa
* Amaris

Contributors
------------

- Anthony Muschang <anthony.muschang@acsone.eu>
- Stéphane Bidoul <stephane.bidoul@acsone.eu>
- Holger Brunn <hbrunn@therp.nl>
- Siddharth Bhalgami <siddharth.bhalgami@gmail.com>
- Wolfgang Pichler <wpichler@callino.at>
- David Vidal <david.vidal@tecnativa.com>
- Quentin Theuret <quentin.theuret@amaris.com>
- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Jairo Llopis
- Ernesto Tejeda
- Carlos Roca

- Sudhir Arya <sudhir@erpharbor.com>
- Pierre Pizzetta <pierre@devreaction.com>
- Mantas Šniukas <mantas@vialaurea.lt>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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 <https://github.com/OCA/web/tree/17.0/web_dialog_size>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions web_dialog_size/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
39 changes: 39 additions & 0 deletions web_dialog_size/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright 2015 ACSONE SA/NV
# Copyright 2018 Amaris
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"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": "https://github.com/OCA/web",
"category": "web",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"depends": ["web"],
"installable": True,
"assets": {
"web.assets_backend": [
"/web_dialog_size/static/src/js/web_dialog_size.esm.js",
"/web_dialog_size/static/src/scss/web_dialog_size.scss",
"/web_dialog_size/static/src/xml/ExpandButton.xml",
(
"after",
"/web/static/src/core/dialog/dialog.xml",
"/web_dialog_size/static/src/xml/web_dialog_header.xml",
),
(
"after",
"/web/static/src/views/view_dialogs/select_create_dialog.xml",
"/web_dialog_size/static/src/xml/select_create_dialog.xml",
),
],
},
}
31 changes: 31 additions & 0 deletions web_dialog_size/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_dialog_size
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-10-13 20:46+0000\n"
"Last-Translator: Corneliuus <cornelius@clk-it.de>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: web_dialog_size
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
msgid "System Parameter"
msgstr "Systemparameter"

#~ msgid "Display Name"
#~ msgstr "Anzeigename"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Zuletzt bearbeitet am"
25 changes: 25 additions & 0 deletions web_dialog_size/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_dialog_size
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-05-25 11:47+0000\n"
"Last-Translator: Valentin Vinagre <valentin.vinagre@sygel.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: web_dialog_size
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
msgid "System Parameter"
msgstr "Parámetro del sistema"

#~ msgid "ID"
#~ msgstr "ID"
25 changes: 25 additions & 0 deletions web_dialog_size/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_dialog_size
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-05-14 20:47+0000\n"
"Last-Translator: Yves Le Doeuff <yld@alliasys.fr>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: web_dialog_size
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
msgid "System Parameter"
msgstr "Paramètre système"

#~ msgid "Display Name"
#~ msgstr "Nom affiché"
31 changes: 31 additions & 0 deletions web_dialog_size/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_dialog_size
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-27 11:33+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: web_dialog_size
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
msgid "System Parameter"
msgstr "Parametro di sistema"

#~ msgid "Display Name"
#~ msgstr "Nome Visualizzato"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Ultima Modifica il"
31 changes: 31 additions & 0 deletions web_dialog_size/i18n/nl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_dialog_size
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-05-17 20:47+0000\n"
"Last-Translator: Bosd <c5e2fd43-d292-4c90-9d1f-74ff3436329a@anonaddy.me>\n"
"Language-Team: none\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: web_dialog_size
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
msgid "System Parameter"
msgstr "Systeem Parameter"

#~ msgid "Display Name"
#~ msgstr "Weergavenaam"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Laatst Gewijzigd op"
19 changes: 19 additions & 0 deletions web_dialog_size/i18n/web_dialog_size.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_dialog_size
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: web_dialog_size
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
msgid "System Parameter"
msgstr ""
22 changes: 22 additions & 0 deletions web_dialog_size/i18n/zh_CN.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_dialog_size
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-09-01 12:52+0000\n"
"Last-Translator: 黎伟杰 <674416404@qq.com>\n"
"Language-Team: none\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Weblate 3.8\n"

#. module: web_dialog_size
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
msgid "System Parameter"
msgstr "系统参数"
1 change: 1 addition & 0 deletions web_dialog_size/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import ir_config_parameter
18 changes: 18 additions & 0 deletions web_dialog_size/models/ir_config_parameter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2018 Tecnativa - Jairo Llopis
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo.models import Model, api
from odoo.tools.safe_eval import const_eval


class IrConfigParameter(Model):
_inherit = "ir.config_parameter"

@api.model
def get_web_dialog_size_config(self):
get_param = self.sudo().get_param
return {
"default_maximize": const_eval(
get_param("web_dialog_size.default_maximize", "False")
)
}
3 changes: 3 additions & 0 deletions web_dialog_size/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
7 changes: 7 additions & 0 deletions web_dialog_size/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
By default, the module respects the caller's `dialog_size` option. If
you want to set dialog boxes maximized by default, you need to:

1. Go to *Settings -\> Technical -\> Parameters -\> System Parameters*

2. Add a new record with the text *web_dialog_size.default_maximize* in
the *Key* field and the text *True* in the *Value* field
15 changes: 15 additions & 0 deletions web_dialog_size/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- Anthony Muschang \<<anthony.muschang@acsone.eu>\>
- Stéphane Bidoul \<<stephane.bidoul@acsone.eu>\>
- Holger Brunn \<<hbrunn@therp.nl>\>
- Siddharth Bhalgami \<<siddharth.bhalgami@gmail.com>\>
- Wolfgang Pichler \<<wpichler@callino.at>\>
- David Vidal \<<david.vidal@tecnativa.com>\>
- Quentin Theuret \<<quentin.theuret@amaris.com>\>
- [Tecnativa](https://www.tecnativa.com):
- Pedro M. Baeza
- Jairo Llopis
- Ernesto Tejeda
- Carlos Roca
- Sudhir Arya \<<sudhir@erpharbor.com>\>
- Pierre Pizzetta \<<pierre@devreaction.com>\>
- Mantas Šniukas \<<mantas@vialaurea.lt>\>
Loading
Loading