summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss
diff options
context:
space:
mode:
authorDharmraj Jhala <dja@openerp.com>2017-04-18 14:33:57 +0530
committerAaron Bohy <aab@odoo.com>2018-08-17 18:18:53 +0200
commita105e5f2082eac0535d57005febbc1b1bb61e0a4 (patch)
treea06426a98d4e8941d3ea5fa10f8292d0fe6f4dc6 /addons/web/static/src/scss
parent858893494f756351d1a4061e384e5eb081c8e405 (diff)
[IMP] web,various: Add 'Remove' button to view dialogs opened from x2m fields
Currently, to remove link of x2m field from any record, sometimes there's no way. For example, if we are on mobile and open any Quotation, it's linked quotation lines are automatically converted in kanban, and there is no way to delete a line from that quotation. However, in some of the manually designed kanban, there is special 'x' for removing / unlinking x2m record, for example, Contacts of Partner. This commit makes the behavior more consistent. During edition (mobile and desktop), if a view dialog is opened on click of x2m field, it will have one 'Remove' button (based on user rights) on right side of dialog footer, allowing users to delete / unlink the record. Moreover, in mobile, the modal is opened fullscreen, with sticky header and footer. Related Task# : 31641 Closes PR #15857 Co-authored-by: Mohammed Shekha <msh@openerp.com>
Diffstat (limited to 'addons/web/static/src/scss')
-rw-r--r--addons/web/static/src/scss/modal.scss26
1 files changed, 26 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/modal.scss b/addons/web/static/src/scss/modal.scss
index a71f8aa0ff2..c525050e1ec 100644
--- a/addons/web/static/src/scss/modal.scss
+++ b/addons/web/static/src/scss/modal.scss
@@ -83,6 +83,32 @@
}
}
}
+
+ @include media-breakpoint-down(xs) {
+ &.o_modal_full {
+ .modal-dialog {
+ margin: 0px;
+ height: 100%;
+
+ .modal-content {
+ height: 100%;
+ border: none;
+
+ .modal-header {
+ background: $o-brand-odoo;
+ .modal-title, .o_subtitle, button.close {
+ color: white;
+ }
+ }
+
+ .modal-body {
+ height: 100%;
+ overflow-y: auto;
+ }
+ }
+ }
+ }
+ }
}
// Temporary fix for modals which are not instantiated thanks to the Dialog