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
cd15503c
Commit
cd15503c
authored
1 year ago
by
Daniil Digtyar Vasilieva
Browse files
Options
Downloads
Patches
Plain Diff
[IMP] energy_selfconsumption: added view to contract_generation_wizard_views.xml
parent
27e8db92
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!253
[REL] Release 06/11/23
,
!211
[IMP] energy_selfconsumption: invoicing acquired power
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
energy_selfconsumption/models/selfconsumption.py
+1
-1
1 addition, 1 deletion
energy_selfconsumption/models/selfconsumption.py
energy_selfconsumption/wizards/contract_generation_wizard.py
+0
-3
0 additions, 3 deletions
energy_selfconsumption/wizards/contract_generation_wizard.py
with
1 addition
and
4 deletions
energy_selfconsumption/models/selfconsumption.py
+
1
−
1
View file @
cd15503c
...
...
@@ -68,7 +68,7 @@ class Selfconsumption(models.Model):
required
=
True
,
default
=
lambda
self
:
self
.
env
.
company
.
partner_id
,
)
power
=
fields
.
Float
(
string
=
"
Rated
Power (kW
n
)
"
)
power
=
fields
.
Float
(
string
=
"
Generation
Power (kW)
"
)
distribution_table_ids
=
fields
.
One2many
(
"
energy_selfconsumption.distribution_table
"
,
"
selfconsumption_project_id
"
,
...
...
This diff is collapsed.
Click to expand it.
energy_selfconsumption/wizards/contract_generation_wizard.py
+
0
−
3
View file @
cd15503c
...
...
@@ -29,7 +29,6 @@ class ContractGenerationWizard(models.TransientModel):
string
=
"
Recurrence
"
,
help
=
"
Specify Interval for automatic invoice generation.
"
,
)
<<<<<<<
HEAD
selfconsumption_id
=
fields
.
Many2one
(
"
energy_selfconsumption.selfconsumption
"
,
readonly
=
True
)
...
...
@@ -142,5 +141,3 @@ class ContractGenerationWizard(models.TransientModel):
self
.
selfconsumption_id
.
write
({
"
state
"
:
"
active
"
})
self
.
selfconsumption_id
.
distribution_table_state
(
"
process
"
,
"
active
"
)
return
True
=======
>>>>>>>
aa4e275
([
IMP
]
energy_selfconsumption
:
base
wizard
for
generation
of
contracts
)
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