[Erp5-report] r37190 yusuke - in /erp5/trunk/bt5/erp5_pdm: SkinTemplateItem/portal_skins/er...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jul 20 06:15:27 CEST 2010
Author: yusuke
Date: Tue Jul 20 06:15:27 2010
New Revision: 37190
URL: http://svn.erp5.org?rev=37190&view=rev
Log:
2010-07-20 yusuke
* Supply Cell must be inherit start_date range from the parent.
Modified:
erp5/trunk/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/SupplyCell_asPredicate.xml
erp5/trunk/bt5/erp5_pdm/bt/change_log
erp5/trunk/bt5/erp5_pdm/bt/revision
Modified: erp5/trunk/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/SupplyCell_asPredicate.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/SupplyCell_asPredicate.xml?rev=37190&r1=37189&r2=37190&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/SupplyCell_asPredicate.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_pdm/SkinTemplateItem/portal_skins/erp5_pdm/SupplyCell_asPredicate.xml [utf8] Tue Jul 20 06:15:27 2010
@@ -74,6 +74,15 @@ if not \'priced_quantity\' in mapped_val
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(members
<string>base_category_tuple</string>
<string>_inplacevar_</string>
<string>mapped_value_property_list</string>
+ <string>None</string>
+ <string>supply_line</string>
</tuple>
</value>
</item>
Modified: erp5/trunk/bt5/erp5_pdm/bt/change_log
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_pdm/bt/change_log?rev=37190&r1=37189&r2=37190&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_pdm/bt/change_log [utf8] (original)
+++ erp5/trunk/bt5/erp5_pdm/bt/change_log [utf8] Tue Jul 20 06:15:27 2010
@@ -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.
Modified: erp5/trunk/bt5/erp5_pdm/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_pdm/bt/revision?rev=37190&r1=37189&r2=37190&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_pdm/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_pdm/bt/revision [utf8] Tue Jul 20 06:15:27 2010
@@ -1 +1 @@
-507
\ No newline at end of file
+508
\ No newline at end of file
More information about the Erp5-report
mailing list