diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-10-11 16:37:38 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-10-12 13:39:17 +0200 |
| commit | 03ef19e40c0fc378c18fa0dbfa830f29be852406 (patch) | |
| tree | 2ebc2f49f5dafe88913323528a78f335dfa85e00 /addons/web/static/src/js/fields | |
| parent | b8dac2ff32d2e875e2f43c91f702e17adc938f7e (diff) | |
[FIX] web, hr_timesheet_sheet: make m2o friendly-usable outside of views
Before this commit, m2o external button was always floating outside the
m2o main DOM element, on the right. This induced problems when using the
m2o outside of views (like in Odoo Studio). Now, the m2o design is made
so that this button is inside the m2o, except in form views where we
expect the button to overflow in the tables' right paddings.
Diffstat (limited to 'addons/web/static/src/js/fields')
| -rw-r--r-- | addons/web/static/src/js/fields/relational_fields.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js index 194165b2206..9218897fb1f 100644 --- a/addons/web/static/src/js/fields/relational_fields.js +++ b/addons/web/static/src/js/fields/relational_fields.js @@ -422,7 +422,7 @@ var FieldMany2One = AbstractField.extend({ _updateExternalButton: function () { var has_external_button = !this.nodeOptions.no_open && !this.floating && this.isSet(); this.$external_button.toggle(has_external_button); - this.$el.toggleClass('o_with_button', has_external_button); + this.$el.toggleClass('o_with_button', has_external_button); // Should not be required anymore but kept for compatibility }, |
