Commit a26dd9e3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

after changing 'resource', related simulation movement will be replaced with another id.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31886 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dd8c52df
...@@ -558,6 +558,11 @@ class TestInvoice(TestInvoiceMixin): ...@@ -558,6 +558,11 @@ class TestInvoice(TestInvoiceMixin):
order_line.setResourceValue(other_resource) order_line.setResourceValue(other_resource)
transaction.commit() transaction.commit()
self.tic() self.tic()
# after changing 'resource', related simulation movement will be
# replaced with another id, and we need to find the appropriate one
# here.
delivery_movement = related_applied_rule.contentValues()[0]
invoice_applied_rule = delivery_movement.contentValues()[0]
invoice_movement = invoice_applied_rule.contentValues()[0] invoice_movement = invoice_applied_rule.contentValues()[0]
self.assertEquals(other_resource, self.assertEquals(other_resource,
invoice_movement.getResourceValue()) invoice_movement.getResourceValue())
......
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