diff options
| author | Aaron Bohy <aab@odoo.com> | 2019-03-20 10:08:44 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-04-02 11:55:57 +0000 |
| commit | d0164d834bb18f37f15a129e911f7d8e1c54b7c3 (patch) | |
| tree | d8a54db700bd97aaa91815b202c992815e4ebc50 /addons/account/static/src/js/section_and_note_fields_backend.js | |
| parent | 9fbb4fb44ff92cdee53454ab328c10ae66a11aa0 (diff) | |
[IMP] web,account: editable list: no more position absolute
Before this rev., widgets were absolutely positioned in table
cells. This cause an undesired effect with text fields, as their
textarea overflowed and overlapped the next lines.
With this rev., wigdets are now statically positioned, and the cells
height and width don't change when switching a row to edit mode.
Part of task 1915702
Diffstat (limited to 'addons/account/static/src/js/section_and_note_fields_backend.js')
| -rw-r--r-- | addons/account/static/src/js/section_and_note_fields_backend.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account/static/src/js/section_and_note_fields_backend.js b/addons/account/static/src/js/section_and_note_fields_backend.js index 1f232ac0db8..8d9ab57cee4 100644 --- a/addons/account/static/src/js/section_and_note_fields_backend.js +++ b/addons/account/static/src/js/section_and_note_fields_backend.js @@ -9,7 +9,7 @@ odoo.define('account.section_and_note_backend', function (require) { var FieldChar = require('web.basic_fields').FieldChar; var FieldOne2Many = require('web.relational_fields').FieldOne2Many; var fieldRegistry = require('web.field_registry'); -var FieldText = require('web.basic_fields').FieldText; +var ListFieldText = require('web.basic_fields').ListFieldText; var ListRenderer = require('web.ListRenderer'); var SectionAndNoteListRenderer = ListRenderer.extend({ @@ -94,7 +94,7 @@ var SectionAndNoteFieldOne2Many = FieldOne2Many.extend({ // and a FieldText for the rest (product and note). var SectionAndNoteFieldText = function (parent, name, record, options) { var isSection = record.data.display_type === 'line_section'; - var Constructor = isSection ? FieldChar : FieldText; + var Constructor = isSection ? FieldChar : ListFieldText; return new Constructor(parent, name, record, options); }; |
