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
3933a447
Commit
3933a447
authored
1 year ago
by
ebuzeyTra
Browse files
Options
Downloads
Patches
Plain Diff
f-strings changed to str.format()
parent
5956fd9d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!195
[REL] 14.0.2.0.0
,
!185
constrain added and unlink method extended
Pipeline
#42714
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
energy_selfconsumption/models/distribution_table.py
+1
-1
1 addition, 1 deletion
energy_selfconsumption/models/distribution_table.py
with
1 addition
and
1 deletion
energy_selfconsumption/models/distribution_table.py
+
1
−
1
View file @
3933a447
...
...
@@ -47,7 +47,7 @@ class DistributionTable(models.Model):
def
_supply_point_constrain
(
self
):
for
record
in
self
:
if
record
.
state
in
(
'
validated
'
,
'
process
'
,
'
active
'
):
raise
ValidationError
(
_
(
f
"
The supply point can
'
t be removed because the distribution table state is
{
record
.
state
}
"
))
raise
ValidationError
(
_
(
"
The supply point can
'
t be removed because the distribution table state is {
table_state}
"
).
format
(
table_state
=
record
.
state
))
@api.onchange
(
'
selfconsumption_project_id
'
)
def
_onchange_selfconsumption_project_id
(
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