[ADD] Base energy projects module and energy selfconsumtion module
Changelog
- [ADD]
energy_projectBase module for energy projects- [ADD] Model
projectas base for all the energy projects inhered via delegation - [ADD] Model
inscriptionsto control partner inscriptions to projects - [ADD] Model
project_typeto indicate the type of the project in the base module, new types must be created viadata.xmland assigned in the context. - [ADD] Multi-company logic for
projectmodel, (If nocompany_idis assigned all the companies will see it) - [ADD] New group
user andadmin` to control permissions on all energy projects.
- [ADD] Model
- [ADD]
energy_project_energy_communitiesGlue module betweenenergy_projectandenergy_communties.- [IMP] domain to
partner_idto only show cooperators - [IMP]
energy_projectgroups are added toenergy_communitiesroles.
- [IMP] domain to
- [ADD]
energy_selfconsumptionModule to add the logic for the self-consumption energy projects.- [ADD] Model
selfconsumptioninherits via delegationprojectmodel and adds all the own project logic.-
mail.thread, mail.activity.mixinwill be needed to be inherited in the final project model and not the baseprojectbecause 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
selfconsumptionandsupply_points - [ADD] Action window to only show owners (
res.partner) ofsupply_points
- [ADD] Model
- [ADD]
energy_selfconsumption_cooperatorGlue module betweenenergy_selfconsumptionandcooperator.- [IMP] New field
cooperator_idinsupplyto 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