odoo.define('web_enterprise.form_tests', function (require) { "use strict"; var FormView = require('web.FormView'); var testUtils = require('web.test_utils'); var createView = testUtils.createView; QUnit.module('web_enterprise', { beforeEach: function () { this.data = { partner: { fields: { display_name: { string: "Displayed name", type: "char" }, trululu: {string: "Trululu", type: "many2one", relation: 'partner'}, }, records: [{ id: 1, display_name: "first record", trululu: 4, }, { id: 2, display_name: "second record", trululu: 1, }, { id: 4, display_name: "aaa", }], }, }; }, }, function () { QUnit.module('Mobile FormView'); QUnit.test('statusbar buttons are correctly rendered in mobile', async function (assert) { assert.expect(5); var form = await createView({ View: FormView, model: 'partner', data: this.data, arch: '
' + '
' + '
' + '' + '' + '