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
79756771
Commit
79756771
authored
1 year ago
by
Daniil Digtyar Vasilieva
Browse files
Options
Downloads
Patches
Plain Diff
[IMP] energy_selfconsumption: base wizard for generation of contracts
parent
cdce4c6a
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/wizards/__init__.py
+1
-0
1 addition, 0 deletions
energy_selfconsumption/wizards/__init__.py
energy_selfconsumption/wizards/contract_generation_wizard.py
+31
-0
31 additions, 0 deletions
energy_selfconsumption/wizards/contract_generation_wizard.py
with
32 additions
and
0 deletions
energy_selfconsumption/wizards/__init__.py
+
1
−
0
View file @
79756771
from
.
import
selfconsumption_import_wizard
from
.
import
distribution_table_import_wizard
from
.
import
contract_generation_wizard
This diff is collapsed.
Click to expand it.
energy_selfconsumption/wizards/contract_generation_wizard.py
0 → 100644
+
31
−
0
View file @
79756771
import
logging
from
odoo
import
_
,
api
,
fields
,
models
logger
=
logging
.
getLogger
(
__name__
)
class
ContractGenerationWizard
(
models
.
TransientModel
):
_name
=
"
energy_selfconsumption.contract_generation.wizard
"
price_energy
=
fields
.
Float
(
string
=
"
Price (€/kWn/day)
"
)
recurring_interval
=
fields
.
Integer
(
default
=
1
,
string
=
"
Invoice Every
"
,
help
=
"
Invoice every (Days/Week/Month/Year)
"
,
)
recurring_rule_type
=
fields
.
Selection
(
[
(
"
daily
"
,
"
Day(s)
"
),
(
"
weekly
"
,
"
Week(s)
"
),
(
"
monthly
"
,
"
Month(s)
"
),
(
"
monthlylastday
"
,
"
Month(s) last day
"
),
(
"
quarterly
"
,
"
Quarter(s)
"
),
(
"
semesterly
"
,
"
Semester(s)
"
),
(
"
yearly
"
,
"
Year(s)
"
),
],
default
=
"
monthly
"
,
string
=
"
Recurrence
"
,
help
=
"
Specify Interval for automatic invoice generation.
"
,
)
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