Commit eea3746d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

it is required to call _getExpandablePropertyUpdateDict() if we override...

it is required to call _getExpandablePropertyUpdateDict() if we override _getExpandablePropertyDict(). more refactoring required.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32497 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4b8b5cac
......@@ -87,6 +87,10 @@ class ProductionOrderModelRule(TransformationModelRuleMixin, OrderRule):
for prop in default_property_list:
property_dict[prop] = movement.getProperty(prop)
# rule specific
property_dict.update(**self._getExpandablePropertyUpdateDict(applied_rule,
movement, business_path, property_dict))
path = self.getBusinessProcessValue(applied_rule=applied_rule).getRootExplanationPathValue()
property_dict['source_section'] = path.getDestinationSection(context=movement)
property_dict['source'] = path.getDestination(context=movement)
......
......@@ -103,6 +103,10 @@ class ProductionOrderRule(OrderRule):
for prop in default_property_list:
property_dict[prop] = movement.getProperty(prop)
# rule specific
property_dict.update(**self._getExpandablePropertyUpdateDict(applied_rule,
movement, business_path, property_dict))
return property_dict
from Products.ERP5Type.Utils import monkeyPatch
......
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