Purpose is to replace existing inherits of resource.resource by an inherit on the mixin itself. The mixin offers several methods to compute working intervals, attendance, hours, ... This mixin will be improved in future commits when new methods that will be required with future improvements of various service apps. This commit also adds tests for the mixin itself. A new model is defined only for testing purpose to test the mixin.
13 lines
293 B
Python
13 lines
293 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class MailTest(models.Model):
|
|
_description = 'Test Resource Model'
|
|
_name = 'resource.test'
|
|
_inherit = ['resource.mixin']
|
|
|
|
name = fields.Char()
|