Files
server-backend/base_group_backend/demo/backend_dummy_model.py
Francois Poizat 93eafb5001 IMPL calls super in group_backend res_users compute_share
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
2024-02-01 16:06:39 +01:00

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
)