Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
0
Merge Requests
0
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
Romain Courteaud
erp5_rtl_support
Commits
738b7809
Commit
738b7809
authored
Sep 07, 2012
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix migration of some Constraints.
parent
a526e1d9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
product/ERP5/Document/AccountTypeConstraint.py
product/ERP5/Document/AccountTypeConstraint.py
+1
-0
product/ERP5/Document/AttributeUnicityConstraint.py
product/ERP5/Document/AttributeUnicityConstraint.py
+2
-3
No files found.
product/ERP5/Document/AccountTypeConstraint.py
View file @
738b7809
...
...
@@ -89,3 +89,4 @@ class AccountTypeConstraint(ConstraintMixin):
break
return
error_list
_message_id_tuple
=
(
'message_inconsistent_account_type'
,)
product/ERP5/Document/AttributeUnicityConstraint.py
View file @
738b7809
...
...
@@ -49,9 +49,6 @@ class AttributeUnicityConstraint(PropertyExistenceConstraint):
property_sheets
=
PropertyExistenceConstraint
.
property_sheets
+
\
(
PropertySheet
.
AttributeUnicityConstraint
,)
_message_id_tuple
=
(
'message_invalid_attribute_unicity'
,)
def
_checkConsistency
(
self
,
obj
,
fixit
=
0
):
"""Check the object's consistency.
We will make sure that each non None constraint_definition is
...
...
@@ -83,3 +80,5 @@ class AttributeUnicityConstraint(PropertyExistenceConstraint):
return
error_list
_message_id_tuple
=
PropertyExistenceConstraint
.
_message_id_tuple
+
\
(
'message_invalid_attribute_unicity'
,)
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