[IMP] energy_communities: Adding demo data
Changelog
- [IMP] energy_communities: added
res.company
demo data - [IMP] energy_communities: added a
res.user
for every role - [IMP] energy_communities: added
subcription.request
demo data and validation and payment to replicate the process of cooperators creation. - [IMP] energy_communities: added demo data for
energy_selconsumption
testing. - [IMP] energy_communities: activate languages on demo installation (Catalan, Castilian and Euskera)
- [IMP] energy_communities: new field
new_product_share_template
to wizardmultycompany_easy_creation
to be able to select the product created from the wizard. - [IMP] energy_communities: removed unused old demo data file
demo_data.xml
- [IMP] energy_communities: set
favorite
true on creation of subscription journal to be able to see the journal by default in accounting module. - [IMP] energy_communities: added new dependencies to be able to create the demo data for these modules:
energy_project
,energy_selfconsumption
,energy_selfconsumption_cooperator
- [FIX] energy_communities: load external id
energy_communities.product_category_company_voluntary_share
before data is loaded in compute fieldis_voluntary
#37
Roadmap
Merge request reports
Activity
requested review from @enricostn
assigned to @DaniilDigtyar
- Resolved by Daniil Digtyar Vasilieva
- Resolved by Daniil Digtyar Vasilieva
Having problems with the validations of
subcription.request
this execution has the context of the odoo bot and the main company and the accounting is generated with the main company instead of the community one.I tried this to change the context of the company, but wasn't successful. It initializes the object with the context modified in a new
subcription.request
for some reason. I suppose thateval
attribute needs to pass an ID (like the received fromref())
and not the object already initialized.<function name="validate_subscription_request" model="subscription.request" eval="ref('cooperator_community_1_data')"> <function model="subscription.request" name="with_company"> <value eval="ref('cooperator_community_1_data')"/> <value model="subscription.request" eval="obj().company_id.id"></value> </function> </function> <function name="validate_subscription_request" model="subscription.request" eval="[obj(ref('cooperator_community_1_data')).id]" context="{'company': obj.company_id.id}"/>
added 1 commit
- b82d9bd4 - [IMP]energy_communities: added new subcription requests
added 1 commit
- 7c03d87f - [IMP]energy_communities: remove duplicated subscription
- Resolved by Daniil Digtyar Vasilieva
- Resolved by Daniil Digtyar Vasilieva
added 1 commit
- b650089e - [IMP]energy_communities: added method to validate in demo data
changed milestone to %v14.0.1.1.14
added 1 commit
- 8367d5a2 - [IMP]energy_communities: added energy_selfconsumption_data.xml
added 5 commits
- 8b2cbdee - [IMP]energy_communities: renamed files to guidelines
- 13cc6dc8 - [IMP]energy_communities: supply_points demo data
- 70e6e5d4 - [IMP]energy_communities: distribution_table and supply_point_assignation demo data
- 5b50746e - [IMP]energy_communities: new selfconsumption project demo data
- 5f81ddd3 - [IMP]energy_communities: renaming data to make it more real
Toggle commit listadded 1 commit
- 6b6670d5 - [REV]energy_communities: reverting unwanted changes
added 1 commit
- 163c51b1 - [FIX]energy_communities: load external id before data is loaded
mentioned in issue #36
mentioned in issue #37
added 1 commit
- 61260a8c - [IMP]energy_selfconsumption: renaming coordinator to OECoop
- Resolved by Daniil Digtyar Vasilieva
- Resolved by Daniil Digtyar Vasilieva
- Resolved by Daniil Digtyar Vasilieva
mentioned in commit b6d453f8
mentioned in merge request !195 (merged)
mentioned in merge request !209 (merged)
mentioned in merge request !216 (merged)
unassigned @DaniilDigtyar