Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odoo CE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Comunitats Energètiques
Odoo CE
Commits
7bab1a0c
Commit
7bab1a0c
authored
1 year ago
by
ebuzeyTra
Browse files
Options
Downloads
Patches
Plain Diff
typo in message fixed
parent
eb00ccda
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!195
[REL] 14.0.2.0.0
,
!181
Feature/add constrain to spa
Pipeline
#43548
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
energy_selfconsumption/models/supply_point_assignation.py
+1
-1
1 addition, 1 deletion
energy_selfconsumption/models/supply_point_assignation.py
with
1 addition
and
1 deletion
energy_selfconsumption/models/supply_point_assignation.py
+
1
−
1
View file @
7bab1a0c
...
...
@@ -59,7 +59,7 @@ class SupplyPointAssignation(models.Model):
for
record
in
self
:
supply_points
=
record
.
distribution_table_id
.
selfconsumption_project_id
.
inscription_ids
.
mapped
(
'
partner_id.supply_ids
'
)
if
record
.
supply_point_id
.
id
not
in
supply_points
.
ids
:
raise
ValidationError
(
_
(
"
The partner of the supply
p
point is not subscribed to the project
"
))
raise
ValidationError
(
_
(
"
The partner of the supply point is not subscribed to the project
"
))
@api.onchange
(
'
coefficient
'
)
def
_onchange_coefficient
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment