From 79359a924ea6c9e9689145aba6b141e2ae9b5e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 17 Jul 2020 15:21:16 +0900 Subject: [PATCH] configurator_standard_trade_template: enable "Accept" solver on resource divergences When changing the resource of the variation, this has a big impact, so we enable a divergence, mostly to be consistent with the fact that we ask resolution for quantity divergences: if we ask "we planned for 3 apples, instead we have 2 apples what should we do ?", it's a bit strange not to ask anything for "we planned for 3 apples, instead we have 3 carrots" --- .../resource_tester.xml | 14 ++++++++++++++ .../variation_tester.xml | 8 ++++++++ 2 files changed, 22 insertions(+) diff --git a/bt5/erp5_configurator_standard_trade_template/PathTemplateItem/portal_rules/new_delivery_simulation_rule/resource_tester.xml b/bt5/erp5_configurator_standard_trade_template/PathTemplateItem/portal_rules/new_delivery_simulation_rule/resource_tester.xml index fe6a75642a..413b3606dc 100644 --- a/bt5/erp5_configurator_standard_trade_template/PathTemplateItem/portal_rules/new_delivery_simulation_rule/resource_tester.xml +++ b/bt5/erp5_configurator_standard_trade_template/PathTemplateItem/portal_rules/new_delivery_simulation_rule/resource_tester.xml @@ -18,6 +18,20 @@ <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> </value> </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>solver/portal_solvers/Accept Solver</string> + </tuple> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> <item> <key> <string>id</string> </key> <value> <string>resource_tester</string> </value> diff --git a/bt5/erp5_configurator_standard_trade_template/PathTemplateItem/portal_rules/new_delivery_simulation_rule/variation_tester.xml b/bt5/erp5_configurator_standard_trade_template/PathTemplateItem/portal_rules/new_delivery_simulation_rule/variation_tester.xml index 456e5a0372..1350fc9e43 100644 --- a/bt5/erp5_configurator_standard_trade_template/PathTemplateItem/portal_rules/new_delivery_simulation_rule/variation_tester.xml +++ b/bt5/erp5_configurator_standard_trade_template/PathTemplateItem/portal_rules/new_delivery_simulation_rule/variation_tester.xml @@ -35,6 +35,14 @@ <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> </value> </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>solver/portal_solvers/Accept Solver</string> + </tuple> + </value> + </item> <item> <key> <string>description</string> </key> <value> -- 2.30.9