Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • coopdevs/comunitats-energetiques/odoo-ce
1 result
Show changes
Showing
with 395 additions and 330 deletions
from odoo import _, fields, models
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.",
)
selfconsumption_id = fields.Many2one(
"energy_selfconsumption.selfconsumption", readonly=True
)
def generate_contracts_button(self):
"""
This method generates contracts based on supply point assignations.
It first creates a product and a contract formula. It then
aggregates supply point assignations by partner and owner
to generate the contracts.
In the other hand, if the process was successful, the state of self-consumption
and the distribution_table changes to 'active'.
Returns:
bool: Always True, indicating successful execution.
Raises:
UserWarning: When no accounting journal is found.
SomeException: When no distribution table in process of activation is found.
"""
# Create product
product_id = self.env["product.product"].create(
{
"name": _("Energy Acquired - %s") % (self.selfconsumption_id.name),
"lst_price": self.price_energy,
"company_id": self.env.company.id,
}
)
# Create contract formula
formula_contract_id = self.env["contract.line.qty.formula"].create(
{
"name": _("Formula - %s") % (self.selfconsumption_id.name),
"code": """
days_timedelta = line.next_period_date_end - line.next_period_date_start
if days_timedelta:
# Add one so it counts the same day too (month = 29 + 1)
days_between = days_timedelta.days + 1
else:
days_between = 0
result = line.supply_point_assignation_id.distribution_table_id.selfconsumption_project_id.power * line.supply_point_assignation_id.coefficient * days_between
""",
}
)
# Search accounting journal
journal_id = self.env["account.journal"].search(
[("company_id", "=", self.env.company.id), ("type", "=", "sale")], limit=1
)
if not journal_id:
raise UserWarning(_("Accounting Journal not found."))
# Get distribution table
distribution_id = (
self.selfconsumption_id.distribution_table_ids.filtered_domain(
[("state", "=", "process")]
)
)
if not distribution_id:
raise _("There is no distribution table in proces of activation.")
# Create contracts
for supply_point_assignation in distribution_id.supply_point_assignation_ids:
contract_lines = [
(
0,
0,
{
"product_id": product_id.id,
"automatic_price": True,
"company_id": self.env.company.id,
"qty_type": "variable",
"qty_formula_id": formula_contract_id.id,
"name": _(
"""CUPS: %s
Owner: %s
Invoicing period: #START# - #END#"""
)
% (
supply_point_assignation.supply_point_id.code,
supply_point_assignation.supply_point_id.owner_id.display_name,
),
"supply_point_assignation_id": supply_point_assignation.id,
},
)
]
self.env["contract.contract"].create(
{
"name": _("Contract - %s - %s")
% (
self.selfconsumption_id.name,
supply_point_assignation.supply_point_id.partner_id.name,
),
"partner_id": supply_point_assignation.supply_point_id.partner_id.id,
"invoice_partner_id": supply_point_assignation.supply_point_id.partner_id.id,
"journal_id": journal_id.id,
"recurring_interval": self.recurring_interval,
"recurring_rule_type": self.recurring_rule_type,
"recurring_invoicing_type": "post-paid",
"date_start": fields.date.today(),
"company_id": self.env.company.id,
"contract_line_ids": contract_lines,
"project_id": self.selfconsumption_id.project_id.id,
}
)
# Update selfconsumption and distribution_table state
self.selfconsumption_id.write({"state": "active"})
self.selfconsumption_id.distribution_table_state("process", "active")
return True
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<record id="contract_generation_wizard_form_view" model="ir.ui.view">
<field
name="name"
>energy_selfconsumption.contract_generation_wizard.form</field>
<field
name="model"
>energy_selfconsumption.contract_generation.wizard</field>
<field name="arch" type="xml">
<form string="Contract Generation">
<sheet>
<group>
<group>
<field name="price_energy" />
</group>
<group>
<field name="recurring_interval" />
<field name="recurring_rule_type" />
</group>
</group>
</sheet>
<footer>
<button
type="object"
name="generate_contracts_button"
>Generate</button>
</footer>
</form>
</field>
</record>
</data>
</odoo>
from odoo import _, fields, models
from odoo.exceptions import UserError
from ..models.selfconsumption import INVOICING_VALUES
class ContractGenerationWizard(models.TransientModel):
_name = "energy_selfconsumption.define_invoicing_mode.wizard"
RULE_TYPE_OPTIONS = [
("daily", _("Day(s)")),
("weekly", _("Week(s)")),
("monthly", _("Month(s)")),
("monthlylastday", _("Month(s) last day")),
("quarterly", _("Quarter(s)")),
("semesterly", _("Semester(s)")),
("yearly", _("Year(s)")),
]
invoicing_mode = fields.Selection(
INVOICING_VALUES,
string="Invoicing Mode",
default="power_acquired",
required=True,
)
price = fields.Float(required=True)
recurrence_interval = fields.Integer(
default=1,
string="Invoice Every",
required=True,
help=_("Invoice every (Days/Week/Month/Year)"),
)
recurring_rule_type = fields.Selection(
RULE_TYPE_OPTIONS,
default="monthlylastday",
string="Recurrence",
required=True,
help=_("Specify Interval for automatic invoice generation."),
)
selfconsumption_id = fields.Many2one(
"energy_selfconsumption.selfconsumption", readonly=True
)
def _prepare_product_values(self):
account_income_xml_id = "l10n_es.%i_account_common_7050" % self.env.company.id
account_income_id = self.env.ref(account_income_xml_id)
account_tax_xml_id = (
"l10n_es.%i_account_tax_template_s_iva21s" % self.env.company.id
)
account_tax_id = self.env.ref(account_tax_xml_id)
uom_kw_id = self.env.ref("energy_project.kw_uom")
return {
"name": self.selfconsumption_id.name,
"type": "service",
"lst_price": self.price,
"company_id": self.env.company.id,
"project_id": self.selfconsumption_id.project_id.id,
"property_account_income_id": account_income_id.id,
"taxes_id": [account_tax_id.id],
"sale_ok": True,
"purchase_ok": False,
"uom_id": uom_kw_id.id,
"uom_po_id": uom_kw_id.id,
}
def _prepare_formula_values(self, code):
return {
"name": _("Formula - %s") % (self.selfconsumption_id.name),
"code": code,
}
def _prepare_contract_values(self, journal_id, contract_line):
return {
"name": self.selfconsumption_id.name,
"journal_id": journal_id.id,
"company_id": self.env.company.id,
"contract_line_ids": contract_line,
"recurring_interval": self.recurrence_interval,
"recurring_rule_type": self.recurring_rule_type,
}
def save_data_to_selfconsumption(self):
if self.invoicing_mode == "energy_delivered_variable":
raise UserError(_("This invoicing mode is not yet implemented"))
# Create product
product_id = self.env["product.product"].create(self._prepare_product_values())
# Create contract formula
# TODO:Update formula energy_delivered and energy_delivered_variable.
formula_contract_id = None
if self.invoicing_mode == "power_acquired":
code = f"""
days_timedelta = line.next_period_date_end - line.next_period_date_start
if days_timedelta:
# Add one so it counts the same day too (month = 29 + 1)
days_between = days_timedelta.days + 1
else:
days_between = 0
result = line.supply_point_assignation_id.distribution_table_id.selfconsumption_project_id.power * line.supply_point_assignation_id.coefficient * days_between
"""
formula_contract_id = self.env["contract.line.qty.formula"].create(
self._prepare_formula_values(code)
)
elif self.invoicing_mode == "energy_delivered":
code = f"""
days_timedelta = line.next_period_date_end - line.next_period_date_start
if days_timedelta:
# Add one so it counts the same day too (month = 29 + 1)
days_between = days_timedelta.days + 1
else:
days_between = 0
result = line.supply_point_assignation_id.distribution_table_id.selfconsumption_project_id.power * line.supply_point_assignation_id.coefficient * days_between
"""
formula_contract_id = self.env["contract.line.qty.formula"].create(
self._prepare_formula_values(code)
)
elif self.invoicing_mode == "energy_delivered_variable":
code = (
f"""
days_timedelta = line.next_period_date_end - line.next_period_date_start
if days_timedelta:
# Add one so it counts the same day too (month = 29 + 1)
days_between = days_timedelta.days + 1
else:
days_between = 0
result = line.supply_point_assignation_id.distribution_table_id.selfconsumption_project_id.power * line.supply_point_assignation_id.coefficient * days_between
""",
)
formula_contract_id = self.env["contract.line.qty.formula"].create(
self._prepare_formula_values(code)
)
# Search accounting journal
journal_id = self.env["account.journal"].search(
[("company_id", "=", self.env.company.id), ("type", "=", "sale")], limit=1
)
if not journal_id:
raise UserWarning(_("Accounting Journal not found."))
# Create Contract Template
contract_line = [
(
0,
0,
{
"product_id": product_id.id,
"automatic_price": True,
"company_id": self.env.company.id,
"qty_type": "variable",
"qty_formula_id": formula_contract_id.id,
"name": "",
},
)
]
contract_template_id = self.env["contract.template"].create(
self._prepare_contract_values(journal_id, contract_line)
)
self.selfconsumption_id.write(
{
"invoicing_mode": self.invoicing_mode,
"product_id": product_id,
"contract_template_id": contract_template_id,
}
)
return {
"type": "ir.actions.act_window_close",
}
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<record model="ir.ui.view" id="define_invoicing_mode_wizard_form_view">
<field
name="name"
>energy_selfconsumption.define_invoicing_mode.wizard.form</field>
<field
name="model"
>energy_selfconsumption.define_invoicing_mode.wizard</field>
<field name="arch" type="xml">
<form string="Define Invoicing Mode Wizard">
<sheet>
<group>
<group col="1">
<field name="invoicing_mode" />
<field
name="price"
string="kWh Price (€/kWh)"
attrs="{'invisible': [('invoicing_mode', 'not in', ['energy_delivered', 'energy_delivered_variable'])]}"
/>
<field
name="price"
string="kWn Price per day (€/kWn/day)"
attrs="{'invisible': [('invoicing_mode', '!=', 'power_acquired')]}"
/>
</group>
<group col="2">
<field name="recurrence_interval" />
<field name="recurring_rule_type" />
</group>
</group>
</sheet>
<footer>
<button
name="save_data_to_selfconsumption"
string="Save Data"
type="object"
class="btn-primary"
/>
</footer>
</form>
</field>
</record>
</data>
</odoo>
from . import models
{
"name": "Energy Self-consumption Project Cooperator",
"summary": """
Module glue between Energy Self-consumption and Cooperator
""",
"description": """
Module glue between Energy Self-consumption and Cooperator
""",
"author": "Coopdevs Treball SCCL & Som Energia SCCL",
"website": "https://coopdevs.org",
"category": "Customizations",
"version": "14.0.1.3.0",
"depends": [
"energy_selfconsumption",
"cooperator",
],
"data": [
"views/supply_point_views.xml",
"views/res_partner_views.xml",
],
}
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * energy_selfconsumption_cooperator
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-24 15:03+0000\n"
"PO-Revision-Date: 2023-08-24 17:04+0200\n"
"Last-Translator: Daniil Digtyar Vasilieva <daniil.digtyar@somit.coop>\n"
"Language-Team: \n"
"Language: ca_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 3.0.1\n"
#. module: energy_selfconsumption_cooperator
#: model_terms:ir.actions.act_window,help:energy_selfconsumption_cooperator.action_partner_cooperator_form
msgid "Click to add a contact in your address book."
msgstr "Feu clic per afegir un contacte a la vostra llibreta d'adreces."
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__partner_id
msgid "Cooperator"
msgstr "Soci"
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,help:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__partner_id
msgid "Cooperator subscribed to the self-consumption project"
msgstr "Soci subscrit al projecte d'autoconsum"
#. module: energy_selfconsumption_cooperator
#: model:ir.actions.act_window,name:energy_selfconsumption_cooperator.action_partner_cooperator_form
#: model:ir.ui.menu,name:energy_selfconsumption_cooperator.res_partner_cooperators_menu
msgid "Cooperators"
msgstr "Socis"
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__display_name
msgid "Display Name"
msgstr "Nom a mostrar"
#. module: energy_selfconsumption_cooperator
#: model:ir.model,name:energy_selfconsumption_cooperator.model_energy_selfconsumption_supply_point
msgid "Energy Supply Point"
msgstr "Punt de subministrament d'energia"
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__id
msgid "ID"
msgstr "ID"
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point____last_update
msgid "Last Modified on"
msgstr "Última modificació el"
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * energy_selfconsumption_cooperator
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-18 09:07+0000\n"
"PO-Revision-Date: 2023-08-18 09:07+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: energy_selfconsumption_cooperator
#: model_terms:ir.actions.act_window,help:energy_selfconsumption_cooperator.action_partner_cooperator_form
msgid "Click to add a contact in your address book."
msgstr ""
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__partner_id
msgid "Cooperator"
msgstr ""
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,help:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__partner_id
msgid "Cooperator subscribed to the self-consumption project"
msgstr ""
#. module: energy_selfconsumption_cooperator
#: model:ir.actions.act_window,name:energy_selfconsumption_cooperator.action_partner_cooperator_form
#: model:ir.ui.menu,name:energy_selfconsumption_cooperator.res_partner_cooperators_menu
msgid "Cooperators"
msgstr ""
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__display_name
msgid "Display Name"
msgstr ""
#. module: energy_selfconsumption_cooperator
#: model:ir.model,name:energy_selfconsumption_cooperator.model_energy_selfconsumption_supply_point
msgid "Energy Supply Point"
msgstr ""
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__id
msgid "ID"
msgstr ""
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point____last_update
msgid "Last Modified on"
msgstr ""
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * energy_selfconsumption_cooperator
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-17 14:48+0000\n"
"PO-Revision-Date: 2023-08-17 14:48+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: energy_selfconsumption_cooperator
#: model_terms:ir.actions.act_window,help:energy_selfconsumption_cooperator.action_partner_cooperator_form
msgid "Click to add a contact in your address book."
msgstr "Haga clic para agregar un contacto en su libreta de direcciones."
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__partner_id
msgid "Cooperator"
msgstr "Socio"
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,help:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__partner_id
msgid "Cooperator subscribed to the self-consumption project"
msgstr "Socio adherido al proyecto de autoconsumo"
#. module: energy_selfconsumption_cooperator
#: model:ir.actions.act_window,name:energy_selfconsumption_cooperator.action_partner_cooperator_form
#: model:ir.ui.menu,name:energy_selfconsumption_cooperator.res_partner_cooperators_menu
msgid "Cooperators"
msgstr "Socios"
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__display_name
msgid "Display Name"
msgstr "Nombre para mostrar"
#. module: energy_selfconsumption_cooperator
#: model:ir.model,name:energy_selfconsumption_cooperator.model_energy_selfconsumption_supply_point
msgid "Energy Supply Point"
msgstr "Punto de suministro de energía"
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__id
msgid "ID"
msgstr "ID"
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point____last_update
msgid "Last Modified on"
msgstr "Última modificación"
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * energy_selfconsumption_cooperator
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-08-24 15:05+0000\n"
"PO-Revision-Date: 2023-08-24 17:06+0200\n"
"Last-Translator: Daniil Digtyar Vasilieva <daniil.digtyar@somit.coop>\n"
"Language-Team: \n"
"Language: eu_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 3.0.1\n"
#. module: energy_selfconsumption_cooperator
#: model_terms:ir.actions.act_window,help:energy_selfconsumption_cooperator.action_partner_cooperator_form
msgid "Click to add a contact in your address book."
msgstr "Egin klik helbide-liburuan kontaktu bat gehitzeko."
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__partner_id
msgid "Cooperator"
msgstr "Kooperatiba"
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,help:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__partner_id
msgid "Cooperator subscribed to the self-consumption project"
msgstr "Kooperatzaileak autokontsumo proiektuan harpidetu zuen"
#. module: energy_selfconsumption_cooperator
#: model:ir.actions.act_window,name:energy_selfconsumption_cooperator.action_partner_cooperator_form
#: model:ir.ui.menu,name:energy_selfconsumption_cooperator.res_partner_cooperators_menu
msgid "Cooperators"
msgstr "Kooperatibako Kideak"
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__display_name
msgid "Display Name"
msgstr "Bistaratzeko izena"
#. module: energy_selfconsumption_cooperator
#: model:ir.model,name:energy_selfconsumption_cooperator.model_energy_selfconsumption_supply_point
msgid "Energy Supply Point"
msgstr "Energia Hornikuntza Puntua"
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point__id
msgid "ID"
msgstr "ID"
#. module: energy_selfconsumption_cooperator
#: model:ir.model.fields,field_description:energy_selfconsumption_cooperator.field_energy_selfconsumption_supply_point____last_update
msgid "Last Modified on"
msgstr "Azken aldaketa egunean"
from . import supply_point
from odoo import api, fields, models
class SupplyPoint(models.Model):
_inherit = "energy_selfconsumption.supply_point"
partner_id = fields.Many2one(
string="Cooperator",
help="Cooperator subscribed to the self-consumption project",
)
@api.onchange("partner_id")
def _onchange_cooperator_id(self):
self.owner_id = self.partner_id
energy_selfconsumption_cooperator/static/description/icon.png

3.63 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<record id="action_partner_cooperator_form" model="ir.actions.act_window">
<field name="name">Cooperators</field>
<field name="res_model">res.partner</field>
<field name="view_mode">kanban,tree,form</field>
<field name="domain">[('member', '=', True)]</field>
<field name="context">{'create': False}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a contact in your address book.
</p>
</field>
</record>
<menuitem
name="Cooperators"
id="res_partner_cooperators_menu"
parent="energy_selfconsumption.contacts_category_menu"
action="action_partner_cooperator_form"
/>
</data>
</odoo>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<record id="supply_point_form_view_inherit" model="ir.ui.view">
<field name="name">energy_selfconsumption.supply_point.form.inherit</field>
<field name="model">energy_selfconsumption.supply_point</field>
<field
name="inherit_id"
ref="energy_selfconsumption.supply_point_form_view"
/>
<field name="arch" type="xml">
<xpath expr="//field[@name='owner_id']" position="replace">
<field
name="owner_id"
domain="['|', ('member', '=' , False), ('id', '=', partner_id)]"
/>
</xpath>
</field>
</record>
</data>
</odoo>
......@@ -9,7 +9,7 @@ setuptools.setup(
"community_maps": "odoo14-addon-community-maps==14.0.0.1.13",
"cooperator_account_payment": "odoo14-addon-cooperator-account-payment==14.0.1.1.0",
"cooperator_account_banking_mandate": "odoo14-addon-cooperator-account-banking-mandate==14.0.1.1.0",
"energy_selfconsumption_cooperator": "odoo14-addon-energy-selfconsumption-cooperator==14.0.1.3.0",
"energy_selfconsumption": "odoo14-addon-energy-selfconsumption==14.0.2.2.0",
"crm_metadata": "odoo14-addon-crm-metadata==14.0.1.0.0",
"crm_metadata_rest_api": "odoo14-addon-crm-metadata-rest-api==14.0.1.0.2",
"crm_rest_api": "odoo14-addon-crm-rest-api==14.0.1.0.2",
......
../../../../energy_project_energy_communities
\ No newline at end of file
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon={
"depends_override": {
"energy_project": "odoo14-addon-energy-project==14.0.2.0.0",
"energy_communities": "odoo14-addon-energy-communities==14.0.2.0.1",
},
},
)
......@@ -6,6 +6,7 @@ setuptools.setup(
"depends_override": {
"energy_project": "odoo14-addon-energy-project==14.0.2.0.0",
"web_m2x_options": "odoo14-addon-web-m2x-options==14.0.1.1.1",
"contract_queue_job": "odoo14-addon-contract-queue-job==14.0.1.0.1.dev3",
}
}
)
../../../../energy_selfconsumption_cooperator
\ No newline at end of file