Skip to content
Snippets Groups Projects

[IMP] energy_communities: Adding demo data

Merged Daniil Digtyar Vasilieva requested to merge feature/IMP_demo_data into dev
All threads resolved!

Trello Card

Wiki Documentation

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 wizard multycompany_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 field is_voluntary #37

Roadmap

  • Add new data set for more cases.
  • FIX don't know how to register payment for subscriptions.requests demo data see this #36
Edited by Daniil Digtyar Vasilieva

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
    • 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 that eval attribute needs to pass an ID (like the received from ref()) 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

    Compare with previous version

  • added 1 commit

    • 7c03d87f - [IMP]energy_communities: remove duplicated subscription

    Compare with previous version

  • Enrico Stano
  • Enrico Stano
  • added 1 commit

    • b650089e - [IMP]energy_communities: added method to validate in demo data

    Compare with previous version

  • changed milestone to %v14.0.1.1.14

  • added 2 commits

    • f790f4dd - [IMP]energy_communities: call invoice paid to set effective to the cooperator
    • ecd20295 - [IMP]energy_communities: added news subscriptions and his validations and payments

    Compare with previous version

  • added 2 commits

    • 1f690364 - [REM]energy_communities: unused demo_data.xml
    • b48f18bf - [IMP]energy_communities: activate language only if not active

    Compare with previous version

  • added 1 commit

    • 8367d5a2 - [IMP]energy_communities: added energy_selfconsumption_data.xml

    Compare with previous version

  • 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

    Compare with previous version

  • added 1 commit

    • 6b6670d5 - [REV]energy_communities: reverting unwanted changes

    Compare with previous version

  • Daniil Digtyar Vasilieva marked this merge request as ready

    marked this merge request as ready

  • Daniil Digtyar Vasilieva changed the description

    changed the description

  • added 1 commit

    • 163c51b1 - [FIX]energy_communities: load external id before data is loaded

    Compare with previous version

  • mentioned in issue #36

  • mentioned in issue #37

  • Daniil Digtyar Vasilieva changed the description

    changed the description

  • emanuel buzey approved this merge request

    approved this merge request

  • added 1 commit

    • 61260a8c - [IMP]energy_selfconsumption: renaming coordinator to OECoop

    Compare with previous version

  • Daniil Digtyar Vasilieva changed the description

    changed the description

  • Still waiting for PO approval of data set. But will merge this so it can be released.

  • Daniil Digtyar Vasilieva resolved all threads

    resolved all threads

  • mentioned in commit b6d453f8

  • mentioned in merge request !195 (merged)

  • mentioned in merge request !209 (merged)

  • mentioned in merge request !216 (merged)

  • Please register or sign in to reply
    Loading