[MIG] web_dialog_size: Migration to 18.0

This commit is contained in:
jguerriat
2024-12-27 12:21:58 +00:00
parent f3a6021c13
commit 4403ef95e5
3 changed files with 5 additions and 7 deletions

View File

@@ -15,7 +15,7 @@
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"category": "web",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"depends": ["web"],
"installable": True,

View File

@@ -1,7 +1,5 @@
/** @odoo-module **/
import {ActionDialog} from "@web/webclient/actions/action_dialog";
import {Component, onMounted} from "@odoo/owl";
import {ActionDialog} from "@web/webclient/actions/action_dialog";
import {Dialog} from "@web/core/dialog/dialog";
import {SelectCreateDialog} from "@web/views/view_dialogs/select_create_dialog";
import {patch} from "@web/core/utils/patch";
@@ -19,7 +17,7 @@ export class ExpandButton extends Component {
onMounted(() => {
var self = this;
this.config.then(function (r) {
if (r.default_maximize && stop) {
if (r.default_maximize) {
self.dialog_button_extend();
}
});

View File

@@ -7,7 +7,7 @@
class="btn btn-secondary dialog_button_extend"
t-on-click="dialog_button_restore"
>
<i class="fa fa-compress" />
<i class="fa fa-window-restore" />
</button>
<button
t-if="props.getsize() != 'dialog_full_screen'"
@@ -15,7 +15,7 @@
class="btn btn-secondary dialog_button_restore"
t-on-click="dialog_button_extend"
>
<i class="fa fa-expand" />
<i class="fa fa-window-maximize" />
</button>
</t>
</templates>