summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2014-10-01 19:18:14 +0200
committerChristophe Simonis <chs@odoo.com>2014-10-01 19:18:14 +0200
commit709c9868de7c4ac4985ed4e0055ae3e3e49742ad (patch)
treee90227a947bddf47b3043fcbe8b99529a22aa7dd /addons/web/static/src
parent85f26244a71a0b9a7faa283d6d24fdde6bae899a (diff)
parente8831932464814ed5f9e3a0af33f98891a466417 (diff)
[MERGE] forward port of branch 8.0 up to e883193
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/css/base.css19
-rw-r--r--addons/web/static/src/css/base.sass10
-rw-r--r--addons/web/static/src/img/logo.pngbin13385 -> 4798 bytes
-rw-r--r--addons/web/static/src/img/logo2.pngbin7924 -> 4232 bytes
-rw-r--r--addons/web/static/src/img/nologo.pngbin5802 -> 4139 bytes
-rw-r--r--addons/web/static/src/js/search.js5
-rw-r--r--addons/web/static/src/js/view_form.js13
-rw-r--r--addons/web/static/src/js/view_list.js5
8 files changed, 34 insertions, 18 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index b6859e7592e..1fdae301b99 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -1,4 +1,4 @@
-@charset "utf-8";
+@charset "UTF-8";
@font-face {
font-family: "mnmliconsRegular";
src: url("/web/static/src/font/mnmliconsv21-webfont.eot") format("eot");
@@ -8,7 +8,6 @@
font-weight: normal;
font-style: normal;
}
-
@font-face {
font-family: "EntypoRegular";
src: url("/web/static/src/font/entypo-webfont.eot") format("eot");
@@ -19,7 +18,6 @@
font-weight: normal;
font-style: normal;
}
-
#oe_main_menu_navbar {
min-height: 34px;
z-index: 1001;
@@ -85,6 +83,7 @@
}
.openerp.openerp_webclient_container {
height: calc(100% - 34px);
+ overflow: auto;
}
@media (max-width: 768px) {
.openerp.openerp_webclient_container {
@@ -3026,7 +3025,6 @@
top: 0px;
}
}
-
.kitten-mode-activated {
background-size: cover;
background-attachment: fixed;
@@ -3260,6 +3258,9 @@ body.oe_single_form .oe_single_form_container {
.openerp {
text-shadow: none;
}
+ .openerp .oe_application > div > .oe_view_manager > .oe_view_manager_wrapper > div > .oe_view_manager_body {
+ overflow: visible;
+ }
.openerp .oe_header_row, .openerp ul.oe_header, .openerp div.oe_mail_thread_action, .openerp .oe_mail_recthread_actions, .openerp .oe_button_box, .openerp .oe_form button, .openerp button.oe_invite, .openerp .oe_form header, .openerp .openerp .oe_notebook > li.ui-state-default, .openerp .oe_topbar, .openerp .oe_leftbar, .openerp .oe_loading {
display: none !important;
}
@@ -3295,6 +3296,10 @@ body.oe_single_form .oe_single_form_container {
.openerp .openerp div.oe_mail_wall {
overflow: hidden !important;
}
+
+ .openerp.openerp_webclient_container {
+ overflow: visible;
+ }
}
.tooltip {
padding: 0;
@@ -3355,6 +3360,9 @@ body.oe_single_form .oe_single_form_container {
height: 18px;
font-size: 20px;
}
+.modal .modal-body {
+ overflow-x: auto;
+}
.modal .modal-footer {
text-align: left;
}
@@ -3363,7 +3371,6 @@ body.oe_single_form .oe_single_form_container {
}
.modal .oe_act_window.modal-body {
padding: 0;
- overflow-x: auto;
}
.ui-datepicker {
@@ -3414,7 +3421,7 @@ div.tour-backdrop {
}
body {
- overflow: auto;
+ overflow: hidden;
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index 5ca3ee7ac1b..13be06043da 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -199,6 +199,7 @@ $sheet-padding: 16px
background: white
&.openerp_webclient_container
height: calc(100% - 34px)
+ overflow: auto
@media (max-width: 768px)
&.openerp_webclient_container
height: calc(100% - 52px)
@@ -2658,6 +2659,8 @@ body.oe_single_form
// @media print {{{
@media print
.openerp
+ .oe_application > div > .oe_view_manager > .oe_view_manager_wrapper > div > .oe_view_manager_body
+ overflow: visible
.oe_header_row, ul.oe_header, div.oe_mail_thread_action, .oe_mail_recthread_actions, .oe_button_box, .oe_form button, button.oe_invite, .oe_form header, .openerp .oe_notebook > li.ui-state-default, .oe_topbar, .oe_leftbar, .oe_loading
// We use !important here because jQuery adds @style = display: block on elements when using $.fn.show()
display: none !important
@@ -2688,6 +2691,8 @@ body.oe_single_form
background: none
.openerp div.oe_mail_wall
overflow: hidden !important
+ .openerp.openerp_webclient_container
+ overflow: visible
// }}}
// End of customize
@@ -2744,13 +2749,14 @@ body.oe_single_form
padding: 1px
height: 18px
font-size: 20px
+ .modal-body
+ overflow-x: auto
.modal-footer
text-align: left
.oe_button
margin: 0 4px 0 0
.oe_act_window.modal-body
padding: 0
- overflow-x: auto
.ui-datepicker
z-index: 1500 !important
@@ -2792,7 +2798,7 @@ div.tour-backdrop
// }}}
body
- overflow: auto
+ overflow: hidden
// hack to make IE11 work
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)
diff --git a/addons/web/static/src/img/logo.png b/addons/web/static/src/img/logo.png
index a0a79df29fb..eeb685b93c2 100644
--- a/addons/web/static/src/img/logo.png
+++ b/addons/web/static/src/img/logo.png
Binary files differ
diff --git a/addons/web/static/src/img/logo2.png b/addons/web/static/src/img/logo2.png
index 1651b0c94a8..dc9ab9a3c9d 100644
--- a/addons/web/static/src/img/logo2.png
+++ b/addons/web/static/src/img/logo2.png
Binary files differ
diff --git a/addons/web/static/src/img/nologo.png b/addons/web/static/src/img/nologo.png
index be3cd13a94e..9f8cf01d60f 100644
--- a/addons/web/static/src/img/nologo.png
+++ b/addons/web/static/src/img/nologo.png
Binary files differ
diff --git a/addons/web/static/src/js/search.js b/addons/web/static/src/js/search.js
index 17458e1c185..f14b8c010f1 100644
--- a/addons/web/static/src/js/search.js
+++ b/addons/web/static/src/js/search.js
@@ -1636,8 +1636,7 @@ instance.web.search.ManyToOneField = instance.web.search.CharField.extend({
'contexts', [this.view.dataset.get_context()]);
return this.model.call('name_search', [], {
name: needle,
- args: instance.web.pyeval.eval(
- 'domains', this.attrs.domain ? [this.attrs.domain] : [], context),
+ args: (typeof this.attrs.domain === 'string') ? [] : this.attrs.domain,
limit: 8,
context: context
}).then(function (results) {
@@ -2367,7 +2366,7 @@ instance.web.search.AutoComplete = instance.web.Widget.extend({
switch (ev.which) {
case $.ui.keyCode.TAB:
case $.ui.keyCode.ENTER:
- if (self.get_search_string().length) {
+ if (self.current_result && self.get_search_string().length) {
self.select_item(ev);
}
break;
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index a48b029f728..aca6f2c1c12 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -2864,7 +2864,7 @@ instance.web.form.FieldTextHtml = instance.web.form.AbstractField.extend(instanc
if (! this.get("effective_readonly")) {
self._updating_editor = false;
this.$textarea = this.$el.find('textarea');
- var width = ((this.node.attrs || {}).editor_width || 'auto');
+ var width = ((this.node.attrs || {}).editor_width || 'calc(100% - 4px)');
var height = ((this.node.attrs || {}).editor_height || 250);
this.$textarea.cleditor({
width: width, // width not including margins, borders or padding
@@ -3419,9 +3419,14 @@ instance.web.form.M2ODialog = instance.web.Dialog.extend({
this.$("p").text( text );
this.$buttons.html(QWeb.render("M2ODialog.buttons"));
this.$("input").val(this.getParent().last_query);
- this.$buttons.find(".oe_form_m2o_qc_button").click(function(){
- self.getParent()._quick_create(self.$("input").val());
- self.destroy();
+ this.$buttons.find(".oe_form_m2o_qc_button").click(function(e){
+ if (self.$("input").val() != ''){
+ self.getParent()._quick_create(self.$("input").val());
+ self.destroy();
+ } else{
+ e.preventDefault();
+ self.$("input").focus();
+ }
});
this.$buttons.find(".oe_form_m2o_sc_button").click(function(){
self.getParent()._search_create_popup("form", undefined, self.getParent()._create_context(self.$("input").val()));
diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js
index 9df9247f485..d7e867ad665 100644
--- a/addons/web/static/src/js/view_list.js
+++ b/addons/web/static/src/js/view_list.js
@@ -374,9 +374,8 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
var $column = $(e.currentTarget);
var col_name = $column.data('id');
var field = this.fields_view.fields[col_name];
- // test if the field is a function field with store=false, since it's impossible
- // for the server to sort those fields we desactivate the feature
- if (field && field.store === false) {
+ // test whether the field is sortable
+ if (field && !field.sortable) {
return false;
}
this.dataset.sort(col_name);