Skip to content
Snippets Groups Projects
Commit ff6876af authored by konykon's avatar konykon
Browse files

Add group to res_partner fields

parent 01cdbce6
No related branches found
No related tags found
3 merge requests!239Draft: [REL] energy_communities: dependency energy_selfconsumption bump to,!227[REL] Release 16/10/23,!142Feature/assign ce admin
import logging
from odoo.exceptions import ValidationError
from odoo import SUPERUSER_ID, api, fields, models
from odoo.exceptions import ValidationError
logger = logging.getLogger(__name__)
......@@ -15,6 +15,15 @@ class ResPartner(models.Model):
("not_share", "I prefer to not share it"),
]
)
signup_token = fields.Char(
groups="base.group_erp_manager,energy_communities.group_admin"
)
signup_type = fields.Char(
groups="base.group_erp_manager,energy_communities.group_admin",
)
signup_expiration = fields.Datetime(
groups="base.group_erp_manager,energy_communities.group_admin"
)
@api.model
def create(self, vals):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment