[ADD] Base energy projects module and energy selfconsumtion module
Changelog
- [ADD]
energy_project
Base module for energy projects- [ADD] Model
project
as base for all the energy projects inhered via delegation - [ADD] Model
inscriptions
to control partner inscriptions to projects - [ADD] Model
project_type
to indicate the type of the project in the base module, new types must be created viadata.xml
and assigned in the context. - [ADD] Multi-company logic for
project
model, (If nocompany_id
is assigned all the companies will see it) - [ADD] New group
user and
admin` to control permissions on all energy projects.
- [ADD] Model
- [ADD]
energy_project_energy_communities
Glue module betweenenergy_project
andenergy_communties
.- [IMP] domain to
partner_id
to only show cooperators - [IMP]
energy_project
groups are added toenergy_communities
roles.
- [IMP] domain to
- [ADD]
energy_selfconsumption
Module to add the logic for the self-consumption energy projects.- [ADD] Model
selfconsumption
inherits via delegationproject
model and adds all the own project logic.-
mail.thread, mail.activity.mixin
will be needed to be inherited in the final project model and not the baseproject
because inherit delegation doesn't inherit methods (We should see how this limit us).
-
- [ADD] Model
supply_point
: Locations of energy consumptions related to a partner. - [ADD] Security logic using the groups of
energy_projects
- [ADD] New Views form and tree for
selfconsumption
andsupply_points
- [ADD] Action window to only show owners (
res.partner
) ofsupply_points
- [ADD] Model
- [ADD]
energy_selfconsumption_cooperator
Glue module betweenenergy_selfconsumption
andcooperator
.- [IMP] New field
cooperator_id
insupply
to relate to a cooperatorres.partner
- [ADD] Action window to only show cooperators (
res.partner
)
- [IMP] New field
Trello cards:
- [E23] Com a Admin/Coordi vull poder gestionar els Punt de Subministrament (PS) de les socies
- [E.AUTO] [E23] Com a Admin/Coordi vull tenir un espai a l'Odoo per tenir un registre de les diferents instal·lacions de generació d'una comunitat energètica per tal de poder-los visualitzar i gestionar.
TODO
-
Add translations (cat, es, eu...) !115 (closed) -
Add unit testing !115 (closed)
Edited by Daniil Digtyar Vasilieva