Commit 3956615b authored by Łukasz Nowak's avatar Łukasz Nowak

- root rules need order link to match movements to be stable in case of...

 - root rules need order link to match movements to be stable in case of duplication of other properties (resource, etc)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28719 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4068e34
...@@ -118,13 +118,16 @@ class TestBPMEvaluationMixin(TestBPMMixin): ...@@ -118,13 +118,16 @@ class TestBPMEvaluationMixin(TestBPMMixin):
def _createOrderRule(self): def _createOrderRule(self):
rule = self._createRootTradeRule(portal_type='Order Rule', rule = self._createRootTradeRule(portal_type='Order Rule',
reference='default_order_rule') reference='default_order_rule', matching_property = ('resource_list',
'variation_category_list', 'variation_property_dict', 'order_list'))
rule.validate() rule.validate()
transaction.commit() transaction.commit()
def _createDeliveryRule(self): def _createDeliveryRule(self):
rule = self._createRootTradeRule(portal_type='Delivery Rule', rule = self._createRootTradeRule(portal_type='Delivery Rule',
reference='default_delivery_rule' reference='default_delivery_rule', matching_property = (
'resource_list', 'variation_category_list',
'variation_property_dict', 'order_list')
) )
rule.validate() rule.validate()
transaction.commit() transaction.commit()
......
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