Commit 979d05c4 authored by Thibaut Deheunynck's avatar Thibaut Deheunynck

thibaut

change condition on action Old Registry.(thanks jerome) 
Add a constraint in M0Constraint
modify script createOrganisationFromM0

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22782 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 031ed7fb
......@@ -93,7 +93,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>python:object.getTranslatedValidationState()==\'imported\'</string> </value>
<value> <string>python:object.getValidationState()==\'imported\'</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -100,6 +100,11 @@ class M0Constraint:
'type' : 'PropertyExistence',
'first_administrator_address': None,
},
{ 'id' : 'date_existence',
'description' : 'Property date must be definied',
'type' : 'PropertyExistence',
'date' : None,
},
{ 'id' : 'rccm_check_existence',
'description' : 'Property rccm check must be definied',
'type' : 'PropertyExistence',
......
......@@ -95,7 +95,7 @@ organisation.edit(\n
default_address_street_address=request_eform.getWorkAddress(),\n
default_address_city=request_eform.getDefaultAddressCity(),\n
social_form=\'%s\' % request_eform.getLegalForm().lower(),\n
price_currency=\'currency_module/XOF\',\n
price_currency=\'currency_module/1\', # object 1 is the devise XOF\n
site=\'dakar/pikine_guediawaye/tribunal\', #XXX this should not be hardcoded\n
start_date=request_eform.getBeginningDate(),\n
stop_date="%04d/%02d/%02d" % (stop_year, month, day),\n
......
797
\ No newline at end of file
804
\ No newline at end of file
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