Commit d0833feb authored by Xiaowu Zhang's avatar Xiaowu Zhang

start date is inventory date

parent 92b46479
......@@ -6,7 +6,7 @@ internal_supply.edit(
source_section = destination_section,
destination_section = destination_section,
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)
resource_dict = {}
......@@ -38,6 +38,7 @@ for key in resource_dict:
tmp = inventory_report_line.getVariationCategoryList()
base_id = 'path'
for index in range(len(tmp)):
#get id like path_0_1_0
base_id = base_id + '_' + str(range_list[index].index(tmp[index]))
cell = internal_supply_line.newContent(
portal_type= 'Internal Supply Cell',
......
......@@ -50,7 +50,7 @@
</item>
<item>
<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>
<key> <string>id</string> </key>
......
......@@ -9,7 +9,10 @@
<item>
<key> <string>delegated_list</string> </key>
<value>
<list/>
<list>
<string>default</string>
<string>editable</string>
</list>
</value>
</item>
<item>
......@@ -50,6 +53,12 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>extra_context</string> </key>
<value> <string></string> </value>
......@@ -69,6 +78,16 @@
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>default</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>extra_context</string> </key>
<value>
......@@ -89,4 +108,17 @@
</dictionary>
</pickle>
</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>
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