Commit e43357de authored by Gabriel Monnerat's avatar Gabriel Monnerat

clean up the scripts and update spreadsheet with steps

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44656 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 46bdd019
......@@ -51,53 +51,17 @@
<item>
<key> <string>_body</string> </key>
<value> <string>configuration_save = context.restrictedTraverse(configuration_save_url)\n
"""\n
gap_info_list = context.BusinessConfiguration_getAvailableGAPList()\n
selected_gap_info = None\n
for gap_info in gap_info_list:\n
if gap_info[\'id\'] == accounting_plan:\n
selected_gap_info = gap_info\n
\n
#assert selected_gap_info is not None\n
\n
## install accounting bt5 template based on selected accounting plan\n
configuration_save.addConfigurationItem("Standard BT5 Configurator Item",\n
bt5_id=selected_gap_info[\'bt5\'])\n
\n
group_id = context.getGlobalConfigurationAttr(\'group_id\')\n
if group_id is None:\n
# if group_id is not found, use \'group\'\n
group_id = context.getGlobalConfigurationAttr(\'group\')\n
\n
accounting_transaction_simulation_state_list = \'delivered stopped\' # XXX is it OK not to pass a list ?\n
\n
gap_account_map = context.BusinessConfiguration_getDefaultAccountList()\n
\n
for item in gap_account_map[accounting_plan]:\n
configuration_save.addConfigurationItem("Account Configurator Item", **item)\n
\n
## Configure accounting preferences\n
configuration_save.addConfigurationItem(\n
\'Preference Configurator Item\',\n
object_id = \'default_configurator_preference\',\n
preferred_accounting_transaction_from_date = None,\n
preferred_accounting_transaction_at_date = None,\n
preferred_section_category = \'group/%s\' % group_id,\n
preferred_accounting_transaction_section_category = \'group/%s\' % group_id,\n
preferred_accounting_transaction_gap = selected_gap_info[\'root\'],\n
preferred_accounting_transaction_simulation_state_list\n
= accounting_transaction_simulation_state_list)\n
"""\n
## Configure accounting period\n
configuration_save.addConfigurationItem("Accounting Period Configurator Item",\n
## Configure assignment period\n
configuration_save.addConfigurationItem("Assignment Configurator Item",\n
start_date=period_start_date,\n
stop_date=period_stop_date,\n
short_title=period_title)\n
assignment_title=assignment_title)\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>configuration_save_url=None, accounting_plan=\'\', period_start_date=None, period_stop_date=None, period_title=None, **kw</string> </value>
<value> <string>configuration_save_url=None, period_start_date=None, period_stop_date=None, assignment_title=None, **kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
......
......@@ -93,11 +93,7 @@
</item>
<item>
<key> <string>description</string> </key>
<value> <string encoding="cdata"><![CDATA[
Accounting Periods are used to define the range of dates in which you will be allowed to input accounting transactions.<br/>To start using the system, you have to configure the first accounting period.
]]></string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
......@@ -113,7 +109,7 @@ Accounting Periods are used to define the range of dates in which you will be al
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Accounting Period</string> </value>
<value> <string>Assignment Period</string> </value>
</item>
</dictionary>
</value>
......@@ -129,7 +125,7 @@ Accounting Periods are used to define the range of dates in which you will be al
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:here.Base_translateString("Accounting Periods are used to define the range of dates in which you will be allowed to input accounting transactions. To start using the system, you have to configure the first accounting period.")</string> </value>
<value> <string>python:here.Base_translateString("Assignment Periods are used to define the range of dates in which you will be allowed to login in UNG Web Site. To start using the system, you have to configure the first assignment period.")</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -72,19 +72,20 @@ if company_user_number == 1:\n
**kw)\n
else:\n
# many users\n
for employee_counter in range(0, company_employees_number):\n
context.log(company_user_number)\n
for employee_counter in range(0, company_user_number):\n
user_kw = {}\n
for key in form_keys:\n
new_key = key.replace("field_your_", "")\n
employee_kw[new_key] = kw[key][employee_counter]\n
user_kw[new_key] = kw[key][employee_counter]\n
# add an user\n
function = employee_kw.pop(\'function\', None)\n
employee_kw.pop(\'password_confirm\', None)\n
function = user_kw.pop(\'function\', None)\n
user_kw.pop(\'password_confirm\', None)\n
configuration_save.addConfigurationItem("Person Configurator Item", \n
organisation_id = organisation_id,\n
function = function,\n
group_id = group_id,\n
**employee_kw)\n
**user_kw)\n
</string> </value>
</item>
<item>
......@@ -97,7 +98,7 @@ else:\n
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Setup company employees</string> </value>
<value> <string>Setup web site users</string> </value>
</item>
</dictionary>
</pickle>
......
6
\ No newline at end of file
7
\ 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