diff --git a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/SupplyCell_asPredicate.xml b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/SupplyCell_asPredicate.xml index 5dc6e65368c2bdd8b0f32a24ee7ea077936263dc..9cfa7e35a7ef659f4159a3117a2d4ed38b7b8153 100644 --- a/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/SupplyCell_asPredicate.xml +++ b/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/SupplyCell_asPredicate.xml @@ -74,6 +74,15 @@ if not \'priced_quantity\' in mapped_value_property_list:\n mapped_value_property_list.append(\'priced_quantity\')\n context.setMappedValuePropertyList(mapped_value_property_list)\n \n +# XXX: An hack that the context cell may not have the start_date_range_min/max properties.\n +# But they don\'t acquire it parent the properties.\n +# Correctly, the cell must acquire the properties.\n +if (context.getStartDateRangeMin() == None and\n + context.getStartDateRangeMax() == None):\n + supply_line = context.getParentValue()\n + context = context.asContext(start_date_range_min=supply_line.getStartDateRangeMin(),\n + start_date_range_max=supply_line.getStartDateRangeMax())\n +\n return context.generatePredicate(membership_criterion_base_category_list = base_category_tuple,\n criterion_property_list = (\'start_date\',))\n </string> </value> @@ -119,6 +128,8 @@ return context.generatePredicate(membership_criterion_base_category_list = base_ <string>base_category_tuple</string> <string>_inplacevar_</string> <string>mapped_value_property_list</string> + <string>None</string> + <string>supply_line</string> </tuple> </value> </item> diff --git a/bt5/erp5_pdm/bt/change_log b/bt5/erp5_pdm/bt/change_log index 06e247bd8c09d1be6eebeb30fa8b75d7ac2efe97..80af5be824df50e5fbf284c04f55e3e79b8d220a 100644 --- a/bt5/erp5_pdm/bt/change_log +++ b/bt5/erp5_pdm/bt/change_log @@ -1,3 +1,6 @@ +2010-07-20 yusuke +* Supply Cell must be inherit start_date range from the parent. + 2010-07-14 yusei * Remove wrecks of already-removed forms. diff --git a/bt5/erp5_pdm/bt/revision b/bt5/erp5_pdm/bt/revision index 5da127eea415025aa9bc10424531ced8f40ae638..22c04b349c78bf83006fe04b89dfadf62143e341 100644 --- a/bt5/erp5_pdm/bt/revision +++ b/bt5/erp5_pdm/bt/revision @@ -1 +1 @@ -507 \ No newline at end of file +508 \ No newline at end of file