Commit ec2493cd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

change the way to detect if new simulation API is used or not.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36859 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d475586d
......@@ -3456,7 +3456,8 @@ class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
invoice_line.getDeliveryRelatedValue(portal_type='Simulation Movement'
).getQuantity())
if self.portal._getOb('portal_solvers', None) is not None:
if invoice_line.getDeliveryRelatedValue().getParentValue().getSpecialiseId() == \
'new_invoice_simulation_rule':
# With new simulation solvers, changes on simulation movements will
# not backtrack.
pass
......
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