Skip to content
Snippets Groups Projects
Commit 7f596034 authored by Benjami's avatar Benjami Committed by konykon
Browse files

Remove add ce admin from company view

parent 2393d7fa
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
This commit is part of merge request !142. Comments created here will be created in the context of that merge request.
......@@ -285,15 +285,6 @@ class ResCompany(models.Model):
landing_page = LandingPageResource(token, baseurl).create(landing_page_data)
self.landing_page_id.write({"wp_landing_page_id": landing_page["id"]})
def action_open_assign_admin_wizard(self):
return {
'name': 'Example Wizard',
'type': 'ir.actions.act_window',
'res_model': 'assign.admin.wizard',
'view_mode': 'form',
'target': 'new',
}
def get_landing_page_form(self):
return {
"type": "ir.actions.act_window",
......
......@@ -20,12 +20,6 @@
string="Create landing page"
attrs="{'invisible': [('landing_page_id','!=',False)]}"
/>
<button
name="action_open_assign_admin_wizard"
type="object"
string="Assing administrator"
groups="energy_communities.group_platform_manager, energy_communities.group_admin, energy_communities.group_coordinator"
/>
</header>
</xpath>
<xpath expr="//field[@name='logo']" position="before">
......
......@@ -7,21 +7,13 @@ class AssignAdminWizard(models.TransientModel):
_name = 'assign.admin.wizard'
_description = 'Assign admin Wizard'
is_new_admin = fields.Boolean(
string=_("Is a new admin?")
)
first_name = fields.Char(string=_("First name"))
last_name = fields.Char(string=_("Last name"))
vat = fields.Char(string=_("VAT"))
email = fields.Char(string=_("Email"))
lang = fields.Many2one(
'res.lang',
string=_("Language")
)
role = fields.Selection(
selection='_get_available_roles',
string=_("Role")
)
is_new_admin = fields.Boolean(string="Is a new admin?")
first_name = fields.Char(string="First name")
last_name = fields.Char(string="Last name")
vat = fields.Char(string="VAT")
email = fields.Char(string="Email")
lang = fields.Many2one('res.lang', string="Language")
role = fields.Selection(selection='_get_available_roles', string="Role")
@api.model
def _get_available_roles(self):
......
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