odoo.define('web_grid.grid_tests', function (require) { "use strict"; var concurrency = require('web.concurrency'); var GridView = require('web_grid.GridView'); var testUtils = require('web.test_utils'); const cpHelpers = require('@web/../tests/search/helpers'); var createView = testUtils.createView; const { createWebClient, doAction } = require('@web/../tests/webclient/helpers'); const { clickDropdown, clickOpenedDropdownItem, editInput, getFixture, patchWithCleanup, } = require("@web/../tests/helpers/utils"); const { browser } = require("@web/core/browser/browser"); const { prepareWowlFormViewDialogs } = require("@web/../tests/views/helpers"); QUnit.module('LegacyViews', { beforeEach: function () { this.data = { 'analytic.line': { fields: { project_id: {string: "Project", type: "many2one", relation: "project"}, task_id: {string: "Task", type: "many2one", relation: "task"}, date: {string: "Date", type: "date"}, unit_amount: {string: "Unit Amount", type: "float"}, }, records: [ {id: 1, project_id: 31, date: "2017-01-24", unit_amount: 2.5}, {id: 2, project_id: 31, task_id: 1, date: "2017-01-25", unit_amount: 2}, {id: 3, project_id: 31, task_id: 1, date: "2017-01-25", unit_amount: 5.5}, {id: 4, project_id: 31, task_id: 1, date: "2017-01-30", unit_amount: 10}, {id: 5, project_id: 142, task_id: 12, date: "2017-01-31", unit_amount: -3.5}, ] }, project: { fields: { name: {string: "Project Name", type: "char"} }, records: [ {id: 31, display_name: "P1"}, {id: 142, display_name: "Webocalypse Now"}, ] }, task: { fields: { name: {string: "Task Name", type: "char"}, project_id: {string: "Project", type: "many2one", relation: "project"}, }, records: [ {id: 1, display_name: "BS task", project_id: 31}, {id: 12, display_name: "Another BS task", project_id: 142}, {id: 54, display_name: "yet another task", project_id: 142}, ] }, }; this.arch = '' + '' + '' + '' + '' + '' + '' + ''+ '' + '