Files
odoo_source/addons/hr/static/tests/helpers/model_definitions_setup.js
T
tsm-odoo 75007b578e [MOV] bus, *: move startServer test helper to the bus module
*: calendar, hr, hr_holidays, im_livechat, note, rating, snailmail,
test_mail, test_mail_full, website_livechat, website_slides.

Part-of: odoo/odoo#97771
2022-08-10 14:43:41 +02:00

11 lines
399 B
JavaScript

/** @odoo-module **/
import { addFakeModel, addModelNamesToFetch } from '@bus/../tests/helpers/model_definitions_helpers';
addModelNamesToFetch(['hr.employee.public']);
addFakeModel('m2x.avatar.employee', {
employee_id: { string: "Employee", type: 'many2one', relation: 'hr.employee.public' },
employee_ids: { string: "Employees", type: "many2many", relation: 'hr.employee.public' },
});