This allows to more easily browse and see all existing fields rather than seeing a lot of details. closes odoo/odoo#104839 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
19 lines
647 B
JavaScript
19 lines
647 B
JavaScript
/** @odoo-module **/
|
|
|
|
import { registerModel } from '@mail/model/model_core';
|
|
import { one } from '@mail/model/model_field';
|
|
|
|
/**
|
|
* Models a record that makes use of a clock.
|
|
*/
|
|
registerModel({
|
|
name: 'ClockWatcher',
|
|
identifyingMode: 'xor',
|
|
fields: {
|
|
activityListViewItemOwner: one('ActivityListViewItem', { identifying: true, inverse: 'clockWatcher' }),
|
|
activityViewOwner: one('ActivityView', { identifying: true, inverse: 'clockWatcher' }),
|
|
clock: one('Clock', { inverse: 'watchers', required: true }),
|
|
messageViewOwner: one('MessageView', { identifying: true, inverse: 'clockWatcher' }),
|
|
},
|
|
});
|