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
!105
[FIX] voluntary shares validation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[FIX] voluntary shares validation
FIX_voluntary_shares_validation
into
dev
Overview
0
Commits
8
Pipelines
2
Changes
8
Merged
Daniil Digtyar Vasilieva
requested to merge
FIX_voluntary_shares_validation
into
dev
2 years ago
Overview
0
Commits
8
Pipelines
2
Changes
8
Expand
Changelog
[FIX][energy_communities] incorrect model render in the mail template causing that sometimes email can't be validated
[IMP][energy_communities] validation for voluntary subscriptions can't be new type
[IMP][energy_communities] Send only capital release mail when is mandatory share
#TODO Remove it and implement a configuration
[IMP][account_banking_mandate_cooperator] Add mandate approved field in view
[IMP][account_banking_mandate_cooperator] added partner_id domain to mandate
[I18N][energy_communities] updated pot and translations
0
0
Merge request reports
Compare
dev
version 1
04db4f26
2 years ago
dev (base)
and
latest version
latest version
e9b6542f
8 commits,
2 years ago
version 1
04db4f26
10 commits,
2 years ago
8 files
+
400
−
241
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
account_banking_mandate_cooperator/models/subscription_request.py
+
6
−
1
Options
@@ -11,7 +11,7 @@ class SubscriptionRequest(models.Model):
ondelete
=
"
restrict
"
,
check_company
=
True
,
readonly
=
False
,
domain
=
"
[(
'
state
'
,
'
in
'
, (
'
draft
'
,
'
valid
'
))]
"
,
domain
=
"
[(
'
state
'
,
'
in
'
, (
'
draft
'
,
'
valid
'
))
, (
'
partner_id
'
,
'
=
'
, partner_id)
]
"
,
)
mandate_required
=
fields
.
Boolean
(
related
=
"
payment_mode_id.payment_method_id.mandate_required
"
,
@@ -61,3 +61,8 @@ class SubscriptionRequest(models.Model):
'
partner_id
'
:
self
.
partner_id
.
id
,
'
company_id
'
:
self
.
company_id
.
id
,
}
@api.onchange
(
"
partner_id
"
)
def
onchange_partner
(
self
):
super
(
SubscriptionRequest
,
self
).
onchange_partner
()
self
.
mandate_id
=
False
Loading