Skip to content
Snippets Groups Projects
Commit 79756771 authored by Daniil Digtyar Vasilieva's avatar Daniil Digtyar Vasilieva :call_me:
Browse files

[IMP] energy_selfconsumption: base wizard for generation of contracts

parent cdce4c6a
No related branches found
No related tags found
2 merge requests!253[REL] Release 06/11/23,!211[IMP] energy_selfconsumption: invoicing acquired power
from . import selfconsumption_import_wizard
from . import distribution_table_import_wizard
from . import contract_generation_wizard
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.",
)
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