Commit 0dac47ed authored by Sebastien Robin's avatar Sebastien Robin

it is not required to set titles on site categories

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16070 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 263e6610
...@@ -635,8 +635,7 @@ class TestERP5BankingMixin: ...@@ -635,8 +635,7 @@ class TestERP5BankingMixin:
else: else:
for ss in ['encaisse_des_billets_et_monnaies', 'encaisse_des_externes', for ss in ['encaisse_des_billets_et_monnaies', 'encaisse_des_externes',
'encaisse_des_billets_recus_pour_ventilation','encaisse_des_devises']: 'encaisse_des_billets_recus_pour_ventilation','encaisse_des_devises']:
title = upperCase(ss) ss = s.newContent(id='%s' %(ss,), portal_type='Category', codification='', vault_type='site/caveau/%s' %(s.getId(),))
ss = s.newContent(id='%s' %(ss,), portal_type='Category', codification='', vault_type='site/caveau/%s' %(s.getId(),), title=title)
if 'ventilation' in ss.getId(): if 'ventilation' in ss.getId():
for country in ['madrid', 'paris']: for country in ['madrid', 'paris']:
if country[0] != c.getCodification()[0]: if country[0] != c.getCodification()[0]:
...@@ -650,8 +649,7 @@ class TestERP5BankingMixin: ...@@ -650,8 +649,7 @@ class TestERP5BankingMixin:
# for # for
if s.getId() == 'auxiliaire': if s.getId() == 'auxiliaire':
for ss in ['encaisse_des_billets_a_ventiler_et_a_detruire', 'encaisse_des_billets_ventiles_et_detruits', 'billets_detenus_par_des_tiers', 'encaisse_des_billets_recus_pour_ventilation_venant_de']: for ss in ['encaisse_des_billets_a_ventiler_et_a_detruire', 'encaisse_des_billets_ventiles_et_detruits', 'billets_detenus_par_des_tiers', 'encaisse_des_billets_recus_pour_ventilation_venant_de']:
title = upperCase(ss) s.newContent(id='%s' %(ss,), portal_type='Category', codification='', vault_type='site/caveau/%s' %(s.getId(),))
s.newContent(id='%s' %(ss,), portal_type='Category', codification='', vault_type='site/caveau/%s' %(s.getId(),), title=title)
# Create forreing currency entries in encaisse_des_devises. # Create forreing currency entries in encaisse_des_devises.
for currency in ['usd', ]: for currency in ['usd', ]:
caisse_courante.encaisse_des_devises.newContent(id=currency, portal_type='Category', codification='', vault_type='site/surface/caisse_courante/encaisse_des_devises') caisse_courante.encaisse_des_devises.newContent(id=currency, portal_type='Category', codification='', vault_type='site/surface/caisse_courante/encaisse_des_devises')
......
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