Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odoo CE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Comunitats Energètiques
Odoo CE
Merge requests
!97
Release v14.0.1.1.1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Release v14.0.1.1.1
dev
into
14.0
Overview
0
Commits
53
Pipelines
3
Changes
2
Merged
Daniil Digtyar Vasilieva
requested to merge
dev
into
14.0
2 years ago
Overview
0
Commits
53
Pipelines
3
Changes
2
Expand
Changelog
[ADD] voluntary shares
!93 (merged)
[FIX] Fixes voluntary shares
!96 (merged)
[I18N] Translation energy_communities ES, CAT and EU
!95 (merged)
Edited
2 years ago
by
Daniil Digtyar Vasilieva
0
0
Merge request reports
Viewing commit
b1215402
Prev
Next
Show latest version
2 files
+
18
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
b1215402
Merge remote-tracking branch 'origin/dev' into dev
· b1215402
Daniil Digtyar Vasilieva
authored
2 years ago
energy_communities/controllers/website_subscription_voluntary_share.py
+
11
−
10
Options
@@ -281,16 +281,17 @@ class WebsiteSubscriptionCCEE(emyc_wsc.WebsiteSubscription):
values
[
"
share_product_id
"
]
=
company
.
voluntary_share_id
.
id
subscription_id
=
sub_req_obj
.
sudo
().
create
(
values
)
if
partner
.
email
!=
kwargs
.
get
(
'
email
'
)
or
partner
.
phone
!=
kwargs
.
get
(
'
phone
'
):
subscription_id
.
message_post
(
**
{
'
subject
'
:
'
We found partner discrepancy in the form
'
,
'
body
'
:
'''
The contact information received from the form <b>was diferent</b> from the one saved in the partner:
<ul>
<li>Email: {} </li>
<li>Phone: {} </li>
</ul>
'''
.
format
(
kwargs
.
get
(
'
email
'
),
kwargs
.
get
(
'
phone
'
),
kwargs
.
get
(
'
iban
'
)),
})
if
partner
:
if
partner
.
email
!=
kwargs
.
get
(
'
email
'
)
or
partner
.
phone
!=
kwargs
.
get
(
'
phone
'
):
subscription_id
.
message_post
(
**
{
'
subject
'
:
'
We found partner discrepancy in the form
'
,
'
body
'
:
'''
The contact information received from the form <b>was diferent</b> from the one saved in the partner:
<ul>
<li>Email: {} </li>
<li>Phone: {} </li>
</ul>
'''
.
format
(
kwargs
.
get
(
'
email
'
),
kwargs
.
get
(
'
phone
'
),
kwargs
.
get
(
'
iban
'
)),
})
if
subscription_id
:
for
field_value
in
post_file
:
attachment_value
=
{
Loading