diff --git a/bt5/erp5_registry_ohada/ActionTemplateItem/portal_types/Organisation/old_registry_view.xml b/bt5/erp5_registry_ohada/ActionTemplateItem/portal_types/Organisation/old_registry_view.xml index 111496cf907452e04c2a6e4e508ddf8bc2ef8d0b..709644fa19432fefe96db95d426b69125c06fc52 100644 --- a/bt5/erp5_registry_ohada/ActionTemplateItem/portal_types/Organisation/old_registry_view.xml +++ b/bt5/erp5_registry_ohada/ActionTemplateItem/portal_types/Organisation/old_registry_view.xml @@ -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> diff --git a/bt5/erp5_registry_ohada/PropertySheetTemplateItem/M0Constraint.py b/bt5/erp5_registry_ohada/PropertySheetTemplateItem/M0Constraint.py index 0cd25e2af805443810e5ab3cf677c506411b4715..8c5e47fd58435b7664db2b4591dde8ba21e080df 100644 --- a/bt5/erp5_registry_ohada/PropertySheetTemplateItem/M0Constraint.py +++ b/bt5/erp5_registry_ohada/PropertySheetTemplateItem/M0Constraint.py @@ -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', diff --git a/bt5/erp5_registry_ohada/WorkflowTemplateItem/portal_workflow/ohada_form_validation_interaction_workflow/scripts/createOrganisationFromM0.xml b/bt5/erp5_registry_ohada/WorkflowTemplateItem/portal_workflow/ohada_form_validation_interaction_workflow/scripts/createOrganisationFromM0.xml index b623442056382f30edce049c99f076943e1ede52..9e121c8d841a34450295f680f2c7c7b70a71b6f6 100644 --- a/bt5/erp5_registry_ohada/WorkflowTemplateItem/portal_workflow/ohada_form_validation_interaction_workflow/scripts/createOrganisationFromM0.xml +++ b/bt5/erp5_registry_ohada/WorkflowTemplateItem/portal_workflow/ohada_form_validation_interaction_workflow/scripts/createOrganisationFromM0.xml @@ -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 diff --git a/bt5/erp5_registry_ohada/bt/revision b/bt5/erp5_registry_ohada/bt/revision index 0a91b8cce0d542c4b2269f156b8aa126351cf1c8..c31da8b3c449ed1fb8c6e37d77083f8a82d74e4a 100644 --- a/bt5/erp5_registry_ohada/bt/revision +++ b/bt5/erp5_registry_ohada/bt/revision @@ -1 +1 @@ -797 \ No newline at end of file +804 \ No newline at end of file