diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-08-07 13:58:20 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-08-07 13:58:20 +0200 |
| commit | d7e2c767ce51ddf112babc5507105da4dc127279 (patch) | |
| tree | a35680f40d9eca32d34660c2ac565401aa61441e /addons/web/static/tests/fields/relational_fields_tests.js | |
| parent | 932b22994169fe6d00b1be23656949a94ac46ef0 (diff) | |
| parent | 3513e599a7aa02c7a21ff10b064a2dfe1d3c81d1 (diff) | |
[MERGE] forward port branch 11.0 up to 3513e599a7a
Diffstat (limited to 'addons/web/static/tests/fields/relational_fields_tests.js')
| -rw-r--r-- | addons/web/static/tests/fields/relational_fields_tests.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/addons/web/static/tests/fields/relational_fields_tests.js b/addons/web/static/tests/fields/relational_fields_tests.js index 993a86f88c8..aaf3701acfc 100644 --- a/addons/web/static/tests/fields/relational_fields_tests.js +++ b/addons/web/static/tests/fields/relational_fields_tests.js @@ -10583,6 +10583,31 @@ QUnit.module('relational_fields', { form.destroy(); }); + QUnit.test('widget many2many_tags', function (assert) { + assert.expect(1); + this.data.turtle.records[0].partner_ids = [2]; + + var form = createView({ + View: FormView, + model: 'turtle', + data: this.data, + arch:'<form string="Turtles">' + + '<sheet>' + + '<field name="display_name"/>' + + '<field name="partner_ids" widget="many2many_tags"/>' + + '</sheet>' + + '</form>', + res_id: 1, + }); + + assert.deepEqual( + form.$('.o_field_many2manytags.o_field_widget .badge .o_badge_text').attr('title'), + 'second record', 'the title should be filled in' + ); + + form.destroy(); + }); + QUnit.module('FieldStatus'); QUnit.test('static statusbar widget on many2one field', function (assert) { |
