mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
FIX applies pre-commit IMPL adds test for share of backend user FIX pre-commit pass IMPL removes mail.activity.mixin from dummy model because it is not needed for the test IMPL renames and divide the base_group_backend into 2 groups one that provide the basic rights and another that allow login in the app IMPL changes backend ui users to a user type FIX pre-commit pass FIX removes useless imports FIX adds share to group_backend_ui_users IMPL adds mail_channel to access rights FIX tests now working FIX pre-commit pass
16 lines
496 B
Python
16 lines
496 B
Python
from odoo import fields, models
|
|
|
|
|
|
class BackendDummyModel(models.Model):
|
|
_name = "backend.dummy.model"
|
|
_description = "Backend Dummy Model demo"
|
|
|
|
my_value = fields.Char(name="Value", required=True)
|
|
my_other_value = fields.Char(name="Other value", required=True)
|
|
date_start = fields.Datetime(
|
|
name="Date start", required=True, default=fields.Datetime.now
|
|
)
|
|
date_stop = fields.Datetime(
|
|
name="Date stop", required=True, default=fields.Datetime.now
|
|
)
|