Skip to content

Commit 7402b6e

Browse files
[MIG] web_dialog_size: Migration to 18.0
1 parent f3a6021 commit 7402b6e

28 files changed

+1019
-5
lines changed

web_dialog_size/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Odoo Community Association (OCA)",
1616
"website": "https://github.com/OCA/web",
1717
"category": "web",
18-
"version": "17.0.1.0.0",
18+
"version": "18.0.1.0.0",
1919
"license": "AGPL-3",
2020
"depends": ["web"],
2121
"installable": True,

web_dialog_size/static/src/js/web_dialog_size.esm.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
/** @odoo-module **/
2-
3-
import {ActionDialog} from "@web/webclient/actions/action_dialog";
41
import {Component, onMounted} from "@odoo/owl";
2+
import {ActionDialog} from "@web/webclient/actions/action_dialog";
53
import {Dialog} from "@web/core/dialog/dialog";
64
import {SelectCreateDialog} from "@web/views/view_dialogs/select_create_dialog";
75
import {patch} from "@web/core/utils/patch";
@@ -19,7 +17,8 @@ export class ExpandButton extends Component {
1917
onMounted(() => {
2018
var self = this;
2119
this.config.then(function (r) {
22-
if (r.default_maximize && stop) {
20+
debugger
21+
if (r.default_maximize) {
2322
self.dialog_button_extend();
2423
}
2524
});
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
===============
2+
Web Dialog Size
3+
===============
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:a861bfd49e89d43c9b0dea89a15318450f23f5a9fc30747b5fdddeb6d291120c
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
20+
:target: https://github.com/OCA/web/tree/17.0/web_dialog_size
21+
:alt: OCA/web
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_dialog_size
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
A module that lets the user expand/restore the dialog box size through a
32+
button in the upper right corner (imitating most windows managers). It
33+
also adds draggable support to the dialogs.
34+
35+
**Table of contents**
36+
37+
.. contents::
38+
:local:
39+
40+
Configuration
41+
=============
42+
43+
By default, the module respects the caller's ``dialog_size`` option. If
44+
you want to set dialog boxes maximized by default, you need to:
45+
46+
1. Go to *Settings -> Technical -> Parameters -> System Parameters*
47+
48+
2. | Add a new record with the text *web_dialog_size.default_maximize*
49+
in
50+
| the *Key* field and the text *True* in the *Value* field
51+
52+
Known issues / Roadmap
53+
======================
54+
55+
- Allow setting default dialog size per user.
56+
57+
Bug Tracker
58+
===========
59+
60+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
61+
In case of trouble, please check there if your issue has already been reported.
62+
If you spotted it first, help us to smash it by providing a detailed and welcomed
63+
`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**>`_.
64+
65+
Do not contact contributors directly about support or help with technical issues.
66+
67+
Credits
68+
=======
69+
70+
Authors
71+
-------
72+
73+
* ACSONE SA/NV
74+
* Therp BV
75+
* Siddharth Bhalgami
76+
* Tecnativa
77+
* Amaris
78+
79+
Contributors
80+
------------
81+
82+
- Anthony Muschang <anthony.muschang@acsone.eu>
83+
- Stéphane Bidoul <stephane.bidoul@acsone.eu>
84+
- Holger Brunn <hbrunn@therp.nl>
85+
- Siddharth Bhalgami <siddharth.bhalgami@gmail.com>
86+
- Wolfgang Pichler <wpichler@callino.at>
87+
- David Vidal <david.vidal@tecnativa.com>
88+
- Quentin Theuret <quentin.theuret@amaris.com>
89+
- `Tecnativa <https://www.tecnativa.com>`__:
90+
91+
- Pedro M. Baeza
92+
- Jairo Llopis
93+
- Ernesto Tejeda
94+
- Carlos Roca
95+
96+
- Sudhir Arya <sudhir@erpharbor.com>
97+
- Pierre Pizzetta <pierre@devreaction.com>
98+
- Mantas Šniukas <mantas@vialaurea.lt>
99+
100+
Maintainers
101+
-----------
102+
103+
This module is maintained by the OCA.
104+
105+
.. image:: https://odoo-community.org/logo.png
106+
:alt: Odoo Community Association
107+
:target: https://odoo-community.org
108+
109+
OCA, or the Odoo Community Association, is a nonprofit organization whose
110+
mission is to support the collaborative development of Odoo features and
111+
promote its widespread use.
112+
113+
This module is part of the `OCA/web <https://github.com/OCA/web/tree/17.0/web_dialog_size>`_ project on GitHub.
114+
115+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright 2015 ACSONE SA/NV
2+
# Copyright 2018 Amaris
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
5+
{
6+
"name": "Web Dialog Size",
7+
"summary": """
8+
A module that lets the user expand a
9+
dialog box to the full screen width.""",
10+
"author": "ACSONE SA/NV, "
11+
"Therp BV, "
12+
"Siddharth Bhalgami,"
13+
"Tecnativa, "
14+
"Amaris, "
15+
"Odoo Community Association (OCA)",
16+
"website": "https://github.com/OCA/web",
17+
"category": "web",
18+
"version": "18.0.1.0.0",
19+
"license": "AGPL-3",
20+
"depends": ["web"],
21+
"installable": True,
22+
"assets": {
23+
"web.assets_backend": [
24+
"/web_dialog_size/static/src/js/web_dialog_size.esm.js",
25+
"/web_dialog_size/static/src/scss/web_dialog_size.scss",
26+
"/web_dialog_size/static/src/xml/ExpandButton.xml",
27+
(
28+
"after",
29+
"/web/static/src/core/dialog/dialog.xml",
30+
"/web_dialog_size/static/src/xml/web_dialog_header.xml",
31+
),
32+
(
33+
"after",
34+
"/web/static/src/views/view_dialogs/select_create_dialog.xml",
35+
"/web_dialog_size/static/src/xml/select_create_dialog.xml",
36+
),
37+
],
38+
},
39+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_dialog_size
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2021-10-13 20:46+0000\n"
10+
"Last-Translator: Corneliuus <cornelius@clk-it.de>\n"
11+
"Language-Team: none\n"
12+
"Language: de\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.3.2\n"
18+
19+
#. module: web_dialog_size
20+
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
21+
msgid "System Parameter"
22+
msgstr "Systemparameter"
23+
24+
#~ msgid "Display Name"
25+
#~ msgstr "Anzeigename"
26+
27+
#~ msgid "ID"
28+
#~ msgstr "ID"
29+
30+
#~ msgid "Last Modified on"
31+
#~ msgstr "Zuletzt bearbeitet am"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_dialog_size
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2021-05-25 11:47+0000\n"
10+
"Last-Translator: Valentin Vinagre <valentin.vinagre@sygel.es>\n"
11+
"Language-Team: none\n"
12+
"Language: es\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.3.2\n"
18+
19+
#. module: web_dialog_size
20+
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
21+
msgid "System Parameter"
22+
msgstr "Parámetro del sistema"
23+
24+
#~ msgid "ID"
25+
#~ msgstr "ID"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_dialog_size
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2021-05-14 20:47+0000\n"
10+
"Last-Translator: Yves Le Doeuff <yld@alliasys.fr>\n"
11+
"Language-Team: none\n"
12+
"Language: fr\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n > 1;\n"
17+
"X-Generator: Weblate 4.3.2\n"
18+
19+
#. module: web_dialog_size
20+
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
21+
msgid "System Parameter"
22+
msgstr "Paramètre système"
23+
24+
#~ msgid "Display Name"
25+
#~ msgstr "Nom affiché"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_dialog_size
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2023-11-27 11:33+0000\n"
10+
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11+
"Language-Team: none\n"
12+
"Language: it\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: web_dialog_size
20+
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
21+
msgid "System Parameter"
22+
msgstr "Parametro di sistema"
23+
24+
#~ msgid "Display Name"
25+
#~ msgstr "Nome Visualizzato"
26+
27+
#~ msgid "ID"
28+
#~ msgstr "ID"
29+
30+
#~ msgid "Last Modified on"
31+
#~ msgstr "Ultima Modifica il"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * web_dialog_size
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2021-05-17 20:47+0000\n"
10+
"Last-Translator: Bosd <c5e2fd43-d292-4c90-9d1f-74ff3436329a@anonaddy.me>\n"
11+
"Language-Team: none\n"
12+
"Language: nl\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.3.2\n"
18+
19+
#. module: web_dialog_size
20+
#: model:ir.model,name:web_dialog_size.model_ir_config_parameter
21+
msgid "System Parameter"
22+
msgstr "Systeem Parameter"
23+
24+
#~ msgid "Display Name"
25+
#~ msgstr "Weergavenaam"
26+
27+
#~ msgid "ID"
28+
#~ msgstr "ID"
29+
30+
#~ msgid "Last Modified on"
31+
#~ msgstr "Laatst Gewijzigd op"

0 commit comments

Comments
 (0)