diff options
| author | Aaron Bohy <aab@odoo.com> | 2019-05-03 11:56:10 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-05-03 12:00:34 +0000 |
| commit | ea1b3254bb58b762c4398dbd8a823a7a41fff6e1 (patch) | |
| tree | 095acd989350dd4b8e05be2f6cb382c32a3b37f8 /addons/web/static/tests/fields/relational_fields | |
| parent | e335d235f6465bcf6869254049d73237f5c6b290 (diff) | |
[IMP] web: multi-line many2one: only highlight first line
Rev. a3489be33 removed this feature to fix a bug (when the single
line many2one, e.g. a product, is too long and displayed over
several lines). However, we (fp) still want this for res_partner
many2ones with show_adress.
This rev. re-introduced the feature without re-introducing the bug.
closes odoo/odoo#33139
Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/tests/fields/relational_fields')
| -rw-r--r-- | addons/web/static/tests/fields/relational_fields/field_many2one_tests.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/tests/fields/relational_fields/field_many2one_tests.js b/addons/web/static/tests/fields/relational_fields/field_many2one_tests.js index e28b8ef1a47..ed38fbbaf03 100644 --- a/addons/web/static/tests/fields/relational_fields/field_many2one_tests.js +++ b/addons/web/static/tests/fields/relational_fields/field_many2one_tests.js @@ -356,7 +356,7 @@ QUnit.module('fields', {}, function () { res_id: 1, }); - assert.strictEqual($('a.o_form_uri').html(), 'aaa<br>Street<br>City ZIP', + assert.strictEqual(form.$('a.o_form_uri').html(), '<span>aaa</span><br><span>Street</span><br><span>City ZIP</span>', "input should have a multi-line content in readonly due to show_address"); await testUtils.form.clickEdit(form); assert.containsOnce(form, 'button.o_external_button:visible', |
