Skip to content
Snippets Groups Projects
Commit 45188947 authored by daniquilez's avatar daniquilez
Browse files

linter corrections

parent b38bab47
No related branches found
No related tags found
2 merge requests!253[REL] Release 06/11/23,!191V1 imrpvements to CompanyEasyCreation wizard (CRM Lead execution)🙋‍
Pipeline #64098 passed
......@@ -372,11 +372,17 @@ class CrmLead(models.Model):
@api.depends("source_id")
def _get_can_be_assigned_to_coordinator(self):
for record in self:
record.can_be_assigned_to_coordinator = record.source_id.id in [
self.env.ref("energy_communities.ce_source_general_info").id,
self.env.ref("energy_communities.ce_source_existing_ce_contact").id,
self.env.ref("energy_communities.ce_source_creation_ce_proposal").id,
]
record.can_be_assigned_to_coordinator = (
record.source_id.id
in [
self.env.ref("energy_communities.ce_source_general_info").id,
self.env.ref("energy_communities.ce_source_existing_ce_contact").id,
self.env.ref(
"energy_communities.ce_source_creation_ce_proposal"
).id,
]
and self.company_id.hierarchy_level == "instance"
)
def add_follower(self):
instance_admin = self.env.ref("energy_communities.role_ce_manager").id
......
......@@ -96,7 +96,7 @@
type="object"
string="Create community"
groups="energy_communities.group_platform_manager"
attrs="{'invisible':[('source_id', '!=', %(ce_source_creation_ce_proposal)d)]}"
attrs="{'invisible':['|',('source_id', '!=', %(ce_source_creation_ce_proposal)d),('probability','=',100)]}"
/>
</header>
</xpath>
......
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