* = 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>
26 lines
629 B
JavaScript
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',
|
|
}),
|
|
},
|
|
});
|