/** @odoo-module */ import { getBasicData } from "@spreadsheet/../tests/utils/data"; export function getAccountingData() { return { models: { ...getBasicData(), "account.move.line": { fields: { account_id: { type: "many2one", relation: "account.account" }, date: { string: "Date", type: "date" }, }, records: [ { id: 1, name: "line1", account_id: 1, date: "2022-06-01" }, { id: 2, name: "line2", account_id: 2, date: "2022-06-23" }, ], }, "account.account": { fields: { code: { string: "Code", type: "string" }, account_type: { string: "Account type", type: "string" }, }, records: [ { id: 1, code: "100104", account_type: "income" }, { id: 2, code: "100105", account_type: "income_other" }, { id: 3, code: "200104", account_type: "income" }, ], }, }, views: { "account.move.line,false,list": /* xml */ ` `, "account.move.line,false,search": /* xml */ ``, }, }; }