Commit d0833feb authored by Xiaowu Zhang's avatar Xiaowu Zhang

start date is inventory date

parent 92b46479
...@@ -6,7 +6,7 @@ internal_supply.edit( ...@@ -6,7 +6,7 @@ internal_supply.edit(
source_section = destination_section, source_section = destination_section,
destination_section = destination_section, destination_section = destination_section,
price_currency = context.getDestinationSectionValue().getPriceCurrency(), price_currency = context.getDestinationSectionValue().getPriceCurrency(),
start_date_range_min = start_date_range_min, start_date_range_min = context.getAtDate(),
start_date_range_max = start_date_range_max) start_date_range_max = start_date_range_max)
resource_dict = {} resource_dict = {}
...@@ -38,6 +38,7 @@ for key in resource_dict: ...@@ -38,6 +38,7 @@ for key in resource_dict:
tmp = inventory_report_line.getVariationCategoryList() tmp = inventory_report_line.getVariationCategoryList()
base_id = 'path' base_id = 'path'
for index in range(len(tmp)): for index in range(len(tmp)):
#get id like path_0_1_0
base_id = base_id + '_' + str(range_list[index].index(tmp[index])) base_id = base_id + '_' + str(range_list[index].index(tmp[index]))
cell = internal_supply_line.newContent( cell = internal_supply_line.newContent(
portal_type= 'Internal Supply Cell', portal_type= 'Internal Supply Cell',
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>start_date_range_min, start_date_range_max,**kw</string> </value> <value> <string>start_date_range_max,**kw</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
<item> <item>
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list/> <list>
<string>default</string>
<string>editable</string>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -50,6 +53,12 @@ ...@@ -50,6 +53,12 @@
<key> <string>tales</string> </key> <key> <string>tales</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>extra_context</string> </key> <key> <string>extra_context</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
...@@ -69,6 +78,16 @@ ...@@ -69,6 +78,16 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>extra_context</string> </key> <key> <string>extra_context</string> </key>
<value> <value>
...@@ -89,4 +108,17 @@ ...@@ -89,4 +108,17 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python:here.getAtDate()</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData> </ZopeData>
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