Files
odoo_source/addons/mail/static/tests/models/qunit_test.js
T
Louis Wicket (wil) b9b0d9c462 [IMP] mail, *: inverse of identifying is automatically causal
* = im_livechat, snailmail

The model manager will now automatically add `isCausal: true` to inverse
of identifying fields. This commit implements the feature and removes
now unnecessary declarations of `isCausal: true` from the code.

Task-2741402.

closes odoo/odoo#100119

Related: odoo/enterprise#31290
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2022-09-14 21:22:15 +02:00

26 lines
629 B
JavaScript

/** @odoo-module **/
import { registerModel } from '@mail/model/model_core';
import { one } from '@mail/model/model_field';
registerModel({
name: 'QUnitTest',
fields: {
clockWatcher: one('ClockWatcher', {
inverse: 'qunitTestOwner',
}),
throttle1: one('Throttle', {
inverse: 'qunitTestOwner1',
}),
throttle2: one('Throttle', {
inverse: 'qunitTestOwner2',
}),
timer1: one('Timer', {
inverse: 'qunitTestOwner1',
}),
timer2: one('Timer', {
inverse: 'qunitTestOwner2',
}),
},
});