diff --git a/bt5/erp5_computer_immobilisation/SkinTemplateItem/portal_skins/erp5_computer_immobilisation/ComputerModule_viewComputerList/listbox_available_partition_count.xml b/bt5/erp5_computer_immobilisation/SkinTemplateItem/portal_skins/erp5_computer_immobilisation/ComputerModule_viewComputerList/listbox_available_partition_count.xml index 646dc38bda837d97d7157217f500121579ae7e88..3dc1ccf3e1236eb7ee88a1fd4298c81195496227 100644 --- a/bt5/erp5_computer_immobilisation/SkinTemplateItem/portal_skins/erp5_computer_immobilisation/ComputerModule_viewComputerList/listbox_available_partition_count.xml +++ b/bt5/erp5_computer_immobilisation/SkinTemplateItem/portal_skins/erp5_computer_immobilisation/ComputerModule_viewComputerList/listbox_available_partition_count.xml @@ -273,7 +273,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: cell.getRemainingQuantity()</string> </value> + <value> <string>python: cell.Computer_getRemainingQuantity()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_computer_immobilisation/SkinTemplateItem/portal_skins/erp5_computer_immobilisation/Computer_getRemainingQuantity.xml b/bt5/erp5_computer_immobilisation/SkinTemplateItem/portal_skins/erp5_computer_immobilisation/Computer_getRemainingQuantity.xml new file mode 100644 index 0000000000000000000000000000000000000000..c4165611d178b77189000ce2fac5cd829aa97ce9 --- /dev/null +++ b/bt5/erp5_computer_immobilisation/SkinTemplateItem/portal_skins/erp5_computer_immobilisation/Computer_getRemainingQuantity.xml @@ -0,0 +1,128 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="PythonScript" module="Products.PythonScripts.PythonScript"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>Script_magic</string> </key> + <value> <int>3</int> </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>"""\n + This script is used to allow Customisation How Available Item \n + (Computer Partitions) are accountable into Computers.\n +\n + By default use Simple Item API. \n +"""\n +return context.getRemainingQuantity()\n +</string> </value> + </item> + <item> + <key> <string>_code</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>_params</string> </key> + <value> <string></string> </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>0</int> </value> + </item> + <item> + <key> <string>co_varnames</string> </key> + <value> + <tuple> + <string>_getattr_</string> + <string>context</string> + </tuple> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>func_defaults</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Computer_getRemainingQuantity</string> </value> + </item> + <item> + <key> <string>warnings</string> </key> + <value> + <tuple/> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_computer_immobilisation/SkinTemplateItem/portal_skins/erp5_computer_immobilisation/Computer_viewComputerPartitionList/my_remaining_quantity.xml b/bt5/erp5_computer_immobilisation/SkinTemplateItem/portal_skins/erp5_computer_immobilisation/Computer_viewComputerPartitionList/my_remaining_quantity.xml index 7bd196fa2ba111edbbd87423e712727fb9f386ac..d7572c63e8c9c0cd66a7bb14eb3eb0c10d04ac8e 100644 --- a/bt5/erp5_computer_immobilisation/SkinTemplateItem/portal_skins/erp5_computer_immobilisation/Computer_viewComputerPartitionList/my_remaining_quantity.xml +++ b/bt5/erp5_computer_immobilisation/SkinTemplateItem/portal_skins/erp5_computer_immobilisation/Computer_viewComputerPartitionList/my_remaining_quantity.xml @@ -13,9 +13,9 @@ <key> <string>delegated_list</string> </key> <value> <list> - <string>title</string> <string>default</string> <string>editable</string> + <string>title</string> </list> </value> </item> @@ -131,7 +131,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>here/getRemainingQuantity|python:0</string> </value> + <value> <string>here/Computer_getRemainingQuantity|python:0</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_computer_immobilisation/bt/revision b/bt5/erp5_computer_immobilisation/bt/revision index 2edeafb09db0093bae6ff060e2dcd2166f5c9387..b5045cc4046dbc1d7cafa4c603fd3cdf35dc5dde 100644 --- a/bt5/erp5_computer_immobilisation/bt/revision +++ b/bt5/erp5_computer_immobilisation/bt/revision @@ -1 +1 @@ -20 \ No newline at end of file +21 \ No newline at end of file