diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDelivery_generateCashDetailInputDialog.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDelivery_generateCashDetailInputDialog.xml index aaafb27e96e1ece46facd3158d08c4cd40cda2df..0e3e3dcdb87825b44676c3a45f68db50458f0d7d 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDelivery_generateCashDetailInputDialog.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDelivery_generateCashDetailInputDialog.xml @@ -288,7 +288,7 @@ if listbox is None:\n , emission_letter_list = emission_letter_list\n , variation_list = variation_list\n , other_parameter = other_parameter_list\n - ).CashDetail_fastInputForm(**kw)\n + ).CashDetail_viewLineFastInputForm(**kw)\n \n \n else :\n @@ -306,7 +306,7 @@ else :\n # we don\'t update anything in read only mode\n if read_only == "True":\n context.Base_updateDialogForm(listbox=listbox, empty_line_number=0)\n - return context.asContext(context=None, portal_type=context.getPortalType() ,**kw ).CashDetail_fastInputForm(**kw)\n + return context.asContext(context=None, portal_type=context.getPortalType() ,**kw ).CashDetail_viewLineFastInputForm(**kw)\n \n # get the maximum number of line allowed for a variation\n if column_base_category == \'cash_status\':\n @@ -371,7 +371,7 @@ else :\n , portal_type=context.getPortalType()\n , calculated_price=total_price\n ,**kw\n - ).CashDetail_fastInputForm(**kw)\n + ).CashDetail_viewLineFastInputForm(**kw)\n ]]></string> </value> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_resource_translated_title.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_resource_translated_title.xml deleted file mode 100644 index 876eead0b1e3409a2db0d764d73fd5b294492fe4..0000000000000000000000000000000000000000 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_resource_translated_title.xml +++ /dev/null @@ -1,266 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <tuple> - <string>Products.Formulator.StandardFields</string> - <string>StringField</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>id</string> </key> - <value> <string>listbox_resource_translated_title</string> </value> - </item> - <item> - <key> <string>message_values</string> </key> - <value> - <dictionary> - <item> - <key> <string>external_validator_failed</string> </key> - <value> <string>The input failed the external validator.</string> </value> - </item> - <item> - <key> <string>required_not_found</string> </key> - <value> <string>Input is required but no input given.</string> </value> - </item> - <item> - <key> <string>too_long</string> </key> - <value> <string>Too much input was given.</string> </value> - </item> - </dictionary> - </value> - </item> - <item> - <key> <string>overrides</string> </key> - <value> - <dictionary> - <item> - <key> <string>alternate_name</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>css_class</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>default</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>description</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>display_maxwidth</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>display_width</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>editable</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>enabled</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>external_validator</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>extra</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>hidden</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>max_length</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>required</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>truncate</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>unicode</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>whitespace_preserve</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </value> - </item> - <item> - <key> <string>tales</string> </key> - <value> - <dictionary> - <item> - <key> <string>alternate_name</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>css_class</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>default</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>description</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>display_maxwidth</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>display_width</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>editable</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>enabled</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>external_validator</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>extra</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>hidden</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>max_length</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>required</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>truncate</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>unicode</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>whitespace_preserve</string> </key> - <value> <string></string> </value> - </item> - </dictionary> - </value> - </item> - <item> - <key> <string>values</string> </key> - <value> - <dictionary> - <item> - <key> <string>alternate_name</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>css_class</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>default</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>description</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>display_maxwidth</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>display_width</string> </key> - <value> <int>0</int> </value> - </item> - <item> - <key> <string>editable</string> </key> - <value> <int>0</int> </value> - </item> - <item> - <key> <string>enabled</string> </key> - <value> <int>1</int> </value> - </item> - <item> - <key> <string>external_validator</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>extra</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>hidden</string> </key> - <value> <int>1</int> </value> - </item> - <item> - <key> <string>max_length</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>required</string> </key> - <value> <int>0</int> </value> - </item> - <item> - <key> <string>title</string> </key> - <value> <string>Resource</string> </value> - </item> - <item> - <key> <string>truncate</string> </key> - <value> <int>0</int> </value> - </item> - <item> - <key> <string>unicode</string> </key> - <value> <int>0</int> </value> - </item> - <item> - <key> <string>whitespace_preserve</string> </key> - <value> <int>0</int> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputSave.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputSave.xml deleted file mode 100644 index f5c8c7f9271eb07f249ffc10feae63656cbe3906..0000000000000000000000000000000000000000 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputSave.xml +++ /dev/null @@ -1,443 +0,0 @@ -<?xml version="1.0"?> -<ZopeData> - <record id="1" aka="AAAAAAAAAAE="> - <pickle> - <tuple> - <tuple> - <string>Products.PythonScripts.PythonScript</string> - <string>PythonScript</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>Python_magic</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>Script_magic</string> </key> - <value> <int>3</int> </value> - </item> - <item> - <key> <string>__ac_local_roles__</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>_bind_names</string> </key> - <value> - <object> - <klass> - <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>_asgns</string> </key> - <value> - <dictionary> - <item> - <key> <string>name_container</string> </key> - <value> <string>container</string> </value> - </item> - <item> - <key> <string>name_context</string> </key> - <value> <string>context</string> </value> - </item> - <item> - <key> <string>name_m_self</string> </key> - <value> <string>script</string> </value> - </item> - <item> - <key> <string>name_subpath</string> </key> - <value> <string>traverse_subpath</string> </value> - </item> - </dictionary> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>_body</string> </key> - <value> <string encoding="cdata"><![CDATA[ - -cell_base_id = \'movement\'\n -\n -variation_list = kw[\'variation_list\']\n -emissionLetter_list = kw[\'emission_letter_list\']\n -cashStatus_list = kw[\'cash_status_list\']\n -operationCurrency = kw[\'operation_currency\']\n -line_portal_type = kw[\'line_portal_type\']\n -\n -otherParameter_list = kw[\'other_parameter\']\n -operationCurrency = otherParameter_list[0]\n -line_portal_type = otherParameter_list[1]\n -updatePossible = otherParameter_list[2]\n -columnBase = otherParameter_list[3]\n -useInventory = otherParameter_list[4]\n -\n -if columnBase == \'emission_letter\':\n - numberOfColumn = len(emissionLetter_list)\n -elif columnBase == \'cash_status\':\n - numberOfColumn = len(cashStatus_list)\n -else:\n - numberOfColumn = len(variation_list)\n -\n -#if (updatePossible==\'False\') or (not context.CashDetail_isListboxValide(listbox=listbox,columnBase=columnBase,numberOfColumn=numberOfColumn, variation_list=variation_list, operationCurrency=operationCurrency)):\n -# context.Base_updateDialogForm(listbox=listbox, empty_line_number=0)\n -# return context.asContext(context=None,portal_type=context.getPortalType(), **kw).CashDetail_fastInputForm(**kw)\n -\n -# list of all variation in the portal category\n -catalog_variation_list = [x for x in context.portal_categories.variation.getCategoryChildTitleItemList()[1:]\n - if x[1] in variation_list]\n -\n -base_list=(\'emission_letter\', \'cash_status\', \'variation\')\n -default_variation_category_list = [\'emission_letter/\'+x for x in emissionLetter_list]\n -default_variation_category_list = default_variation_category_list + [\'cash_status/\'+x for x in cashStatus_list]\n -\n -counter_line=0\n -\n -#containerLines_toDelete = []\n -lines_toDelete = []\n -# List of elements on the input listbox\n -\n -previous_resourceId = None\n -line_created = False\n -\n -listbox_line_count = len(listbox)\n -if listbox_line_count > 0:\n - listbox_line_count_plus_1 = listbox_line_count+1\n -else:\n - listbox_line_count_plus_1 = listbox_line_count\n -\n -last_row = False\n -\n -#for listbox_line in listbox : # Element of ListBox\n -test = []\n -create_line = False\n -for i_listbox in range(0,listbox_line_count_plus_1) : # Element of ListBox\n -\n - if i_listbox >= listbox_line_count:\n - last_row = True\n - else:\n - listbox_line = listbox[i_listbox]\n -\n - if last_row or (previous_resourceId is None) or not (previous_resourceId == listbox_line[\'resource_id\']):\n -\n - if create_line :\n - counter_line += 1\n - # context.log(\'create new line\', line_category_list)\n - new_line = context.newContent(portal_type=line_portal_type) # New line creation\n - new_line.setResourceValue(resource_object) # Set line resource by object found\n - new_line.setVariationBaseCategoryList(base_list)\n - new_line.setVariationCategoryList(line_category_list)\n -\n - new_line.updateCellRange(script_id=\'CashDetail_asCellRange\', base_id = cell_base_id)\n -\n - kwd = {\'base_id\': cell_base_id}\n - cell_range_key_list = new_line.getCellRangeKeyList(base_id = cell_base_id)\n -\n - for cell_category in cell_category_list :\n - variante_list = [cell_category[\'emission_letter\'], cell_category[\'variation\'], cell_category[\'cash_status\']]\n -\n - cell = new_line.newCell(*variante_list, **kwd)\n - mapped_value_list = [\'price\',]\n - if useInventory == 1:\n - mapped_value_list.append(\'inventory\')\n - else:\n - mapped_value_list.append(\'quantity\')\n - cell.edit(mapped_value_property_list = mapped_value_list\n - ,force_update = 1\n - ,membership_criterion_category_list = variante_list\n - ,category_list = variante_list\n - )\n -\n - if useInventory == 1:\n - oldQuantity = cell.getProperty(\'inventory\') or 0\n - cell.edit( inventory = cell_category[\'quantity\'] + oldQuantity\n - , price = new_line.getResourceValue().getBasePrice()\n - , reindex_object = 1\n - )\n - else:\n - oldQuantity = cell.getProperty(\'quantity\') or 0\n - cell.edit( quantity = cell_category[\'quantity\'] + oldQuantity\n - , price = new_line.getResourceValue().getBasePrice()\n - , reindex_object = 1\n - )\n -\n - if last_row:\n - break\n - create_line = False\n - line_category_list = []\n - cell_category_list = []\n -\n - old_line = context.CashDetail_search_lineByResource(listbox_line[\'resource_id\'],line_portal_type) # Search if current object contain line with the gived portal type\n - if old_line is not None: # Line found, delete it\n - context.manage_delObjects(old_line.getId())\n -\n -\n - previous_resourceId = listbox_line[\'resource_id\']\n - resource_list = context.portal_catalog(portal_type = (\'Banknote\',\'Coin\'),id = listbox_line[\'resource_id\'])\n - resource_object = resource_list[0].getObject()\n -\n - if columnBase == \'cash_status\':\n - if len(emissionLetter_list ) > 1 :\n - cell_emissionLetter = \'emission_letter/\' + listbox_line[\'emission_letter\']\n - else :\n - cell_emissionLetter = \'emission_letter/\' + emissionLetter_list[0]\n - if len(variation_list ) > 1 :\n - cell_variation = \'variation/\'+listbox_line[\'variation\']\n - else :\n - cell_variation = \'variation/\'+variation_list[0]\n - axis_list_dict = {\'column\':cashStatus_list,\'line1\': emissionLetter_list ,\'line2\': variation_list}\n - axis_dict = {\'column\':\'cash_status\',\'line1\': \'emission_letter\' ,\'line2\': \'variation\'}\n - base_line_category_list = (cell_variation,cell_emissionLetter)\n - elif columnBase == \'emission_letter\':\n - if len(cashStatus_list ) > 1 :\n - cell_cashStatus = \'cash_status/\'+listbox_line[\'cash_status\']\n - else :\n - cell_cashStatus = \'cash_status/\'+cashStatus_list[0]\n - if len(variation_list ) > 1 :\n - cell_variation = \'variation/\'+listbox_line[\'variation\']\n - else :\n - cell_variation = \'variation/\'+variation_list[0]\n - axis_list_dict = {\'column\':emissionLetter_list ,\'line1\':cashStatus_list ,\'line2\': variation_list}\n - axis_dict = {\'column\':\'emission_letter\',\'line1\':\'cash_status\' ,\'line2\': \'variation\'}\n - base_line_category_list = (cell_variation,cell_cashStatus)\n - else:\n - if len(emissionLetter_list ) > 1 :\n - cell_emissionLetter = \'emission_letter/\' +listbox_line[\'emission_letter\']\n - else :\n - cell_emissionLetter = \'emission_letter/\' +emissionLetter_list[0]\n - if len(cashStatus_list ) > 1 :\n - cell_cashStatus = \'cash_status/\'+listbox_line[\'cash_status\']\n - else :\n - cell_cashStatus = \'cash_status/\'+cashStatus_list[0]\n - axis_list_dict = {\'column\':variation_list,\'line1\': emissionLetter_list ,\'line2\': cashStatus_list}\n - axis_dict = {\'column\':\'variation\',\'line1\': \'emission_letter\' ,\'line2\':\'cash_status\' }\n - base_line_category_list = (cell_cashStatus,cell_emissionLetter)\n - categoy_list_created = False\n - counter = 0\n - for col in axis_list_dict[\'column\']:\n - counter += 1\n - cell_quantity = int(listbox_line[\'column\'+str(counter)] or 0)\n - if cell_quantity <> 0 : # input quantity in the listbox\n - if columnBase == \'cash_status\':\n - cell_cashStatus = \'cash_status/\'+col\n - elif columnBase == \'emission_letter\':\n - cell_emissionLetter = \'emission_letter/\' +col\n - else:\n - cell_variation = \'variation/\'+col\n - # check that the variation selected exist for the resource object\n - if col != \'not_defined\' and col not in resource_object.getVariationList():\n - raise "Input Error", "%s doesn\'t exist for %s" %(resource_object.getTitle(), col)\n -\n - cell_category_list += [{\'emission_letter\':cell_emissionLetter ,\'variation\':cell_variation, \'cash_status\':cell_cashStatus, \'quantity\':cell_quantity}]\n -\n - create_line = True\n - if not categoy_list_created:\n - for base_line_category in base_line_category_list:\n - if base_line_category not in line_category_list:\n - line_category_list.append(base_line_category)\n - categoy_list_created = True\n - column_category = axis_dict[\'column\']+\'/\'+col\n - if column_category not in line_category_list:\n - line_category_list.append(column_category)\n -\n -\n -request = context.REQUEST\n -redirect_url = \'%s/view?%s\' % ( context.absolute_url()\n - , \'portal_status_message=\'+context.Localizer.translate("ui", "${nb}+lines+created...", mapping = { \'nb\' : str(counter_line)})\n - )\n -request[ \'RESPONSE\' ].redirect( redirect_url )\n - - -]]></string> </value> - </item> - <item> - <key> <string>_code</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>_dav_writelocks</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> - </value> - </item> - <item> - <key> <string>_filepath</string> </key> - <value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/CashDetail_fastInputSave</string> </value> - </item> - <item> - <key> <string>_owner</string> </key> - <value> - <none/> - </value> - </item> - <item> - <key> <string>_params</string> </key> - <value> <string>listbox=None, **kw</string> </value> - </item> - <item> - <key> <string>_proxy_roles</string> </key> - <value> - <tuple> - <string>Manager</string> - </tuple> - </value> - </item> - <item> - <key> <string>errors</string> </key> - <value> - <tuple/> - </value> - </item> - <item> - <key> <string>func_code</string> </key> - <value> - <object> - <klass> - <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> - </klass> - <tuple/> - <state> - <dictionary> - <item> - <key> <string>co_argcount</string> </key> - <value> <int>1</int> </value> - </item> - <item> - <key> <string>co_varnames</string> </key> - <value> - <tuple> - <string>listbox</string> - <string>kw</string> - <string>cell_base_id</string> - <string>_getitem_</string> - <string>variation_list</string> - <string>emissionLetter_list</string> - <string>cashStatus_list</string> - <string>operationCurrency</string> - <string>line_portal_type</string> - <string>otherParameter_list</string> - <string>updatePossible</string> - <string>columnBase</string> - <string>useInventory</string> - <string>len</string> - <string>numberOfColumn</string> - <string>append</string> - <string>$append0</string> - <string>_getiter_</string> - <string>_getattr_</string> - <string>context</string> - <string>x</string> - <string>catalog_variation_list</string> - <string>base_list</string> - <string>default_variation_category_list</string> - <string>counter_line</string> - <string>lines_toDelete</string> - <string>None</string> - <string>previous_resourceId</string> - <string>False</string> - <string>line_created</string> - <string>listbox_line_count</string> - <string>listbox_line_count_plus_1</string> - <string>last_row</string> - <string>test</string> - <string>create_line</string> - <string>range</string> - <string>i_listbox</string> - <string>True</string> - <string>listbox_line</string> - <string>new_line</string> - <string>resource_object</string> - <string>line_category_list</string> - <string>kwd</string> - <string>cell_range_key_list</string> - <string>cell_category_list</string> - <string>cell_category</string> - <string>variante_list</string> - <string>_apply_</string> - <string>cell</string> - <string>mapped_value_list</string> - <string>oldQuantity</string> - <string>old_line</string> - <string>resource_list</string> - <string>cell_emissionLetter</string> - <string>cell_variation</string> - <string>axis_list_dict</string> - <string>axis_dict</string> - <string>base_line_category_list</string> - <string>cell_cashStatus</string> - <string>categoy_list_created</string> - <string>counter</string> - <string>col</string> - <string>int</string> - <string>str</string> - <string>cell_quantity</string> - <string>base_line_category</string> - <string>column_category</string> - <string>request</string> - <string>redirect_url</string> - </tuple> - </value> - </item> - </dictionary> - </state> - </object> - </value> - </item> - <item> - <key> <string>func_defaults</string> </key> - <value> - <tuple> - <none/> - </tuple> - </value> - </item> - <item> - <key> <string>id</string> </key> - <value> <string>CashDetail_fastInputSave</string> </value> - </item> - <item> - <key> <string>warnings</string> </key> - <value> - <tuple/> - </value> - </item> - </dictionary> - </pickle> - </record> - <record id="2" aka="AAAAAAAAAAI="> - <pickle> - <tuple> - <tuple> - <string>Persistence</string> - <string>PersistentMapping</string> - </tuple> - <none/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>_container</string> </key> - <value> - <dictionary/> - </value> - </item> - </dictionary> - </pickle> - </record> -</ZopeData> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_getVariationForMatrixInput.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_getVariationForMatrixInput.xml index 6959c730902bbc608e1bf24d307577d84a12f887..0b019b939ff7fe5eeb805969ce7484dc28921037 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_getVariationForMatrixInput.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_getVariationForMatrixInput.xml @@ -133,7 +133,6 @@ for x in column_base_list:\n return_list.append([\'column\'+str(counter),x[0]])\n counter += 1\n return_list.append([\'price\',\'Price\'])\n -return_list.append([\'resource_translated_title\',\'\'])\n return_list.append([\'resource_id\',\'\'])\n return return_list\n diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_saveFastInputLine.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_saveFastInputLine.xml new file mode 100644 index 0000000000000000000000000000000000000000..92cffdbda01c8c0fc5f0b4764e1f12a114be6d26 --- /dev/null +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_saveFastInputLine.xml @@ -0,0 +1,398 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.PythonScripts.PythonScript</string> + <string>PythonScript</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Python_magic</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </value> + </item> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_container</string> </key> + <value> <string>container</string> </value> + </item> + <item> + <key> <string>name_context</string> </key> + <value> <string>context</string> </value> + </item> + <item> + <key> <string>name_m_self</string> </key> + <value> <string>script</string> </value> + </item> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_body</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +cell_base_id = \'movement\'\n +line_kwd = {\'base_id\':cell_base_id}\n +\n +variation_list = kw[\'variation_list\']\n +emission_letter_list = kw[\'emission_letter_list\']\n +cash_status_list = kw[\'cash_status_list\']\n +other_parameter_list = kw[\'other_parameter\']\n +operation_currency = other_parameter_list[0]\n +line_portal_type = other_parameter_list[1]\n +read_only = other_parameter_list[2]\n +column_base_category = other_parameter_list[3]\n +use_inventory = other_parameter_list[4]\n +\n +# get the column base list\n +if column_base_category == \'cash_status\':\n + columne_base_list = cash_status_list\n +elif column_base_category == \'emission_letter\':\n + column_base_list = emission_letter_list\n +else:\n + column_base_list = variation_list\n +\n +base_category_list = (\'emission_letter\', \'cash_status\', \'variation\')\n +per_resource_dict = {}\n +\n +# remove previous line\n +old_line = [x.getObject() for x in context.searchFolder(portal_type=[\'Cash Delivery Line\',])]\n +if len(old_line)>0:\n + for object_list in old_line:\n + context.deleteContent(object_list.getId())\n +\n +# get the list of movement we need to create\n +for line in listbox:\n + for counter in xrange(1, len(column_base_list)+1):\n + quantity = line["column%s" %(str(counter),)]\n + if quantity != 0:\n + movement = {}\n + movement[\'quantity\'] = quantity\n + # get variation for the cell\n + if column_base_category == \'cash_status\':\n + movement[\'cash_status\'] = "cash_status/%s" %cash_status_list[counter-1]\n + movement[\'emission_letter\'] = "emission_letter/%s" %line[\'emission_letter\']\n + movement[\'variation\'] = "variation/%s" %line[\'variation\']\n + elif column_base_category == \'emission_letter\':\n + movement[\'cash_status\'] = "cash_status/%s" %line[\'cash_status\']\n + movement[\'emission_letter\'] = "emission_letter/%s" %emission_letter_list[counter-1]\n + movement[\'variation\'] = "variation/%s" %line[\'variation\']\n + else:\n + movement[\'cash_status\'] = "cash_status/%s" %line[\'cash_status\']\n + movement[\'emission_letter\'] = "emission_letter/%s" %line[\'emission_letter\']\n + movement[\'variation\'] = "variation/%s" %variation_list[counter-1]\n + # generate a key based on variation\n + # this will allow us to check if there is multiple line for the same resource + variation\n + movement_key = \'%s_%s_%s\' %(movement[\'cash_status\'], movement[\'emission_letter\'], movement[\'variation\'])\n + resource_id = line["resource_id"]\n + if per_resource_dict.has_key(resource_id) and per_resource_dict[resource_id].has_key(movement_key):\n + # add quantity in case af same movement\n + per_resource_dict[resource_id][movement_key][\'quantity\'] = per_resource_dict[resource_id][movement_key][\'quantity\'] + movement[\'quantity\']\n + elif per_resource_dict.has_key(resource_id):\n + # add variation for this resource\n + per_resource_dict[resource_id][movement_key] = movement\n + else:\n + # create a dict of variation for this resource\n + per_resource_dict[resource_id] = {movement_key:movement,}\n +\n +# create the movement\n +for resource_id in per_resource_dict.keys():\n + variation_list_dict = per_resource_dict[resource_id].values()\n + # get the resource\n + resource_list = context.portal_catalog(portal_type = (\'Banknote\',\'Coin\'), id = resource_id)\n + if len(resource_list) == 0:\n + context.log(\'CashDetail_saveFastInputLine\', \'Cannot get the resource object for id = %s\' %(resource_id,))\n + continue\n + resource_object = resource_list[0].getObject()\n + # get the variation\n + emission_letter_dict = {}\n + cash_status_dict = {}\n + variation_dict = {}\n + for variation in variation_list_dict:\n + letter = variation[\'emission_letter\']\n + status = variation[\'cash_status\']\n + variation = variation[\'variation\']\n + # check if variation exist for the resource\n + if column_base_category == "variation":\n + if variation != \'variation/not_defined\' and variation.lstrip(\'variation/\') not in resource_object.getVariationList():\n + raise "InputError", "%s doesn\\\'t exist for %s" %(resource_object.getTitle(), variation)\n + if not emission_letter_dict.has_key(letter):\n + emission_letter_dict[letter] = 1\n + if not cash_status_dict.has_key(status):\n + cash_status_dict[status] = 1\n + if not variation_dict.has_key(variation):\n + variation_dict[variation] = 1\n +\n + variation_category_list = emission_letter_dict.keys() + cash_status_dict.keys() + variation_dict.keys()\n + # create the cash line\n + line = context.newContent(portal_type = line_portal_type\n + , resource_value = resource_object # banknote or coin\n + , quantity_unit_value = context.portal_categories.quantity_unit.unit\n + )\n + # set base category list on line\n + line.setVariationBaseCategoryList(base_category_list)\n + # set category list line\n + line.setVariationCategoryList(variation_category_list)\n + line.updateCellRange(script_id=\'CashDetail_asCellRange\', base_id=cell_base_id)\n + # create cell\n + cell_range_key_list = line.getCellRangeKeyList(base_id=cell_base_id)\n + if cell_range_key_list <> [[None, None]] :\n + for k in cell_range_key_list:\n + # check we don\'t create a cell for variation which is not defined\n + key = "%s_%s_%s" %(k[2], k[0], k[1])\n + if not per_resource_dict[resource_id].has_key(key):\n + continue\n + category_list = filter(lambda k_item: k_item is not None, k)\n + c = line.newCell(*k, **line_kwd)\n + if use_inventory == \'True\':\n + mapped_value_list = [\'price\', \'inventory\']\n + else:\n + mapped_value_list = [\'price\', \'quantity\']\n + c.edit(membership_criterion_category_list = category_list\n + , mapped_value_property_list = mapped_value_list\n + , category_list = category_list\n + , price = line.getResourceValue().getBasePrice()\n + , force_update = 1\n + )\n + # set quantity on cell to define quantity of bank notes / coins\n + for variation_item in variation_list_dict:\n + variation = variation_item[column_base_category]\n + if column_base_category == "cash_status":\n + cell = line.getCell(variation_item["emission_letter"],\n + variation_item["variation"],\n + variation,\n + base_id=cell_base_id)\n + elif column_base_category == "emission_letter":\n + cell = line.getCell(variation,\n + variation_item["variation"],\n + variation_item["cash_status"],\n + base_id=cell_base_id)\n + else:\n + cell = line.getCell(variation_item["emission_letter"],\n + variation,\n + variation_item["cash_status"],\n + base_id=cell_base_id)\n + # set quantity\n + if cell is not None:\n + if use_inventory == \'True\':\n + cell.setInventory(variation_item["quantity"])\n + else:\n + cell.setQuantity(variation_item["quantity"])\n +\n +\n +request = context.REQUEST\n +redirect_url = \'%s/view?%s\' % ( context.absolute_url()\n + , \'portal_status_message=Lines Created\'\n + )\n +request[ \'RESPONSE\' ].redirect( redirect_url )\n + + +]]></string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_dav_writelocks</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_filepath</string> </key> + <value> <string>Script (Python):/baobab/portal_skins/erp5_banking_core/CashDetail_saveFastInputLine</string> </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string>listbox=None, **kw</string> </value> + </item> + <item> + <key> <string>_proxy_roles</string> </key> + <value> + <tuple> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>errors</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>func_code</string> </key> + <value> + <object> + <klass> + <global name="FuncCode" module="Shared.DC.Scripts.Signature"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>co_argcount</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>listbox</string> + <string>kw</string> + <string>cell_base_id</string> + <string>line_kwd</string> + <string>_getitem_</string> + <string>variation_list</string> + <string>emission_letter_list</string> + <string>cash_status_list</string> + <string>other_parameter_list</string> + <string>operation_currency</string> + <string>line_portal_type</string> + <string>read_only</string> + <string>column_base_category</string> + <string>use_inventory</string> + <string>columne_base_list</string> + <string>column_base_list</string> + <string>base_category_list</string> + <string>per_resource_dict</string> + <string>append</string> + <string>$append0</string> + <string>_getiter_</string> + <string>_getattr_</string> + <string>context</string> + <string>x</string> + <string>old_line</string> + <string>len</string> + <string>object_list</string> + <string>line</string> + <string>xrange</string> + <string>counter</string> + <string>str</string> + <string>quantity</string> + <string>movement</string> + <string>_write_</string> + <string>movement_key</string> + <string>resource_id</string> + <string>variation_list_dict</string> + <string>resource_list</string> + <string>resource_object</string> + <string>emission_letter_dict</string> + <string>cash_status_dict</string> + <string>variation_dict</string> + <string>variation</string> + <string>letter</string> + <string>status</string> + <string>variation_category_list</string> + <string>cell_range_key_list</string> + <string>None</string> + <string>k</string> + <string>key</string> + <string>filter</string> + <string>category_list</string> + <string>_apply_</string> + <string>c</string> + <string>mapped_value_list</string> + <string>variation_item</string> + <string>cell</string> + <string>request</string> + <string>redirect_url</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <tuple> + <none/> + </tuple> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>CashDetail_saveFastInputLine</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <tuple> + <tuple> + <string>Persistence</string> + <string>PersistentMapping</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_container</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm.xml new file mode 100644 index 0000000000000000000000000000000000000000..b1b39a66bb3e91d346860bead6e1856181d83b49 --- /dev/null +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm.xml @@ -0,0 +1,188 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <tuple> + <string>Products.ERP5Form.Form</string> + <string>ERP5Form</string> + </tuple> + <none/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>__ac_local_roles__</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary/> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>_owner</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string>CashDetail_saveFastInputLine</string> </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string>multipart/form-data</string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list> + <string>listbox</string> + </list> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list> + <string>listbox_price</string> + <string>listbox_displayed_resource</string> + <string>listbox_variation</string> + <string>listbox_column1</string> + <string>listbox_column10</string> + <string>listbox_column2</string> + <string>listbox_column3</string> + <string>listbox_column4</string> + <string>listbox_column5</string> + <string>listbox_column6</string> + <string>listbox_column7</string> + <string>listbox_column8</string> + <string>listbox_column9</string> + <string>listbox_column11</string> + <string>listbox_column12</string> + <string>listbox_column13</string> + <string>listbox_column14</string> + <string>listbox_column15</string> + <string>listbox_cash_status</string> + <string>listbox_emission_letter</string> + <string>listbox_number_line_to_add</string> + <string>listbox_resource_id</string> + </list> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>my_variation_list</string> + <string>my_operation_currency</string> + <string>my_cash_status_list</string> + <string>my_emission_letter_list</string> + <string>my_line_portal_type</string> + <string>my_other_parameter</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list> + <string>my_calculated_price</string> + </list> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>CashDetail_viewLineFastInputForm</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>CashDelivery_generateCashDetailInputDialog</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_dialog</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Save</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string>CashDelivery_generateCashDetailInputDialog</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_cash_status.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_cash_status.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_cash_status.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_cash_status.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column1.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column1.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column1.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column1.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column10.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column10.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column10.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column10.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column11.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column11.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column11.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column11.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column12.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column12.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column12.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column12.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column13.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column13.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column13.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column13.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column14.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column14.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column14.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column14.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column15.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column15.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column15.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column15.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column2.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column2.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column2.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column2.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column3.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column3.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column3.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column3.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column4.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column4.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column4.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column4.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column5.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column5.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column5.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column5.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column6.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column6.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column6.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column6.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column7.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column7.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column7.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column7.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column8.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column8.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column8.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column8.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column9.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column9.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_column9.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_column9.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_displayed_resource.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_displayed_resource.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_displayed_resource.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_displayed_resource.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_emission_letter.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_emission_letter.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_emission_letter.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_emission_letter.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_number_line_to_add.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_number_line_to_add.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_number_line_to_add.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_number_line_to_add.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_price.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_price.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_price.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_price.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_resource_id.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_resource_id.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_resource_id.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_resource_id.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_variation.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_variation.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/listbox_variation.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/listbox_variation.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_calculated_price.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_calculated_price.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_calculated_price.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_calculated_price.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_cash_status_list.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_cash_status_list.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_cash_status_list.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_cash_status_list.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_emission_letter_list.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_emission_letter_list.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_emission_letter_list.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_emission_letter_list.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_line_portal_type.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_line_portal_type.xml similarity index 99% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_line_portal_type.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_line_portal_type.xml index 2a699fbfa284c90fd161d96d89048b689563967a..f520de5f9c5e001133754d804150f03abe93162f 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_line_portal_type.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_line_portal_type.xml @@ -221,7 +221,7 @@ </item> <item> <key> <string>enabled</string> </key> - <value> <int>1</int> </value> + <value> <int>0</int> </value> </item> <item> <key> <string>external_validator</string> </key> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_operation_currency.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_operation_currency.xml similarity index 99% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_operation_currency.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_operation_currency.xml index 2b62f526387b1917d6b7d2a5ff80c4fa08ed51cf..3d8b7868fdd59a0a4fab2b7a6d451e9967d89bd5 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_operation_currency.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_operation_currency.xml @@ -221,7 +221,7 @@ </item> <item> <key> <string>enabled</string> </key> - <value> <int>1</int> </value> + <value> <int>0</int> </value> </item> <item> <key> <string>external_validator</string> </key> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_other_parameter.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_other_parameter.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_other_parameter.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_other_parameter.xml diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_variation_list.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_variation_list.xml similarity index 100% rename from bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_fastInputForm/my_variation_list.xml rename to bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CashDetail_viewLineFastInputForm/my_variation_list.xml diff --git a/bt5/erp5_banking_core/bt/change_log b/bt5/erp5_banking_core/bt/change_log index 2cad88e2be7919ef26edd6ed551c95c870b570db..c45d54cb0e39b49184dc48095530d0b4bf27e52d 100644 --- a/bt5/erp5_banking_core/bt/change_log +++ b/bt5/erp5_banking_core/bt/change_log @@ -1,3 +1,7 @@ +2006-06-05 aurel +* complete rewrite of the script that save the fast input for delivery + + 2006-06-02 aurel * finish the rewrite of fast input script