Commit f20f24b9 authored by Thibaut Deheunynck's avatar Thibaut Deheunynck

thibaut

improve constraint for M0 form and P0 form

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22995 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4daf6e24
...@@ -70,11 +70,6 @@ class M0Constraint: ...@@ -70,11 +70,6 @@ class M0Constraint:
'type' : 'PropertyExistence', 'type' : 'PropertyExistence',
'activity_free_text': None, 'activity_free_text': None,
}, },
{ 'id' : 'beginning_date_existence',
'description' : 'Property beginning_date must be definied',
'type' : 'PropertyExistence',
'beginning_date': None,
},
{ 'id' : 'first_administrator_lastname_existence', { 'id' : 'first_administrator_lastname_existence',
'description' : 'Property first_administrator_lastname must be definied', 'description' : 'Property first_administrator_lastname must be definied',
'type' : 'PropertyExistence', 'type' : 'PropertyExistence',
......
...@@ -160,4 +160,12 @@ class P0Constraint: ...@@ -160,4 +160,12 @@ class P0Constraint:
'inscription_check' : None, 'inscription_check' : None,
'condition' : 'python: object.getRccmCheck() == None', 'condition' : 'python: object.getRccmCheck() == None',
}, },
{ 'id' : 'previous_activity_corporate_registration_code_existence',
'description' : 'Property must be definied',
'type' : 'PropertyExistence',
'previous_activity_corporate_registration_code' : None,
'condition' : 'python: object.getActivityRestartCheck() != None',
'message_no_such_property': 'for a restart activity you must define the previous registration code',
'message_property_not_set': 'for a restart activity you must define the previous registration code',
},
) )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment