This commit implements a mixin, `MailTrackingDurationMixin`, that can be added to a model with a `many2one` field. It computes the time a record spends in each value the many2one field takes and stores it in a JSON field (`duration_tracking`). The primary use is with the StatusBarDurationField (`widget='statusbar_duration'`), to compute and display the time a record has spent in each stage in the form view statusbar. To specify on what field the computation has to be done, the model that inherits from this mixin has to specify `_track_duration_field`. (e.g. _track_duration_field = 'stage_id') Computation is based on `mail.tracking.value` messages, so tracking has to be activated for that field. Task-3032773 Part-of: odoo/odoo#108554
24 lines
737 B
Python
24 lines
737 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from . import test_invite
|
|
from . import test_ir_actions
|
|
from . import test_mail_activity
|
|
from . import test_mail_composer
|
|
from . import test_mail_composer_mixin
|
|
from . import test_mail_followers
|
|
from . import test_mail_gateway
|
|
from . import test_mail_mail
|
|
from . import test_mail_management
|
|
from . import test_mail_message
|
|
from . import test_mail_multicompany
|
|
from . import test_mail_security
|
|
from . import test_mail_template
|
|
from . import test_mail_template_preview
|
|
from . import test_mail_thread_internals
|
|
from . import test_mail_tracking_duration_mixin
|
|
from . import test_message_management
|
|
from . import test_message_post
|
|
from . import test_message_track
|
|
from . import test_performance
|
|
from . import test_ui
|