Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
f61cfe84
Commit
f61cfe84
authored
Aug 28, 2020
by
Cédric Le Ninivin
Committed by
Cédric Le Ninivin
May 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ConsistencyMessage: If no message is provided it fallbacks to constraint message
parent
ce0988c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
product/ERP5Type/ConsistencyMessage.py
product/ERP5Type/ConsistencyMessage.py
+2
-0
No files found.
product/ERP5Type/ConsistencyMessage.py
View file @
f61cfe84
...
@@ -49,6 +49,8 @@ class ConsistencyMessage(ObjectMessage):
...
@@ -49,6 +49,8 @@ class ConsistencyMessage(ObjectMessage):
self
.
class_name
=
"Constraint Message"
self
.
class_name
=
"Constraint Message"
self
.
constraint_relative_url
=
""
self
.
constraint_relative_url
=
""
if
constraint
:
if
constraint
:
if
not
message
:
message
=
constraint
.
_getMessage
(
'message_expression_false'
)
self
.
description
=
constraint
.
description
self
.
description
=
constraint
.
description
self
.
class_name
=
constraint
.
__class__
.
__name__
self
.
class_name
=
constraint
.
__class__
.
__name__
# keep track of the relative URL of the constraint to have it included in
# keep track of the relative URL of the constraint to have it included in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment