Commit 478102ae authored by Łukasz Nowak's avatar Łukasz Nowak

Confirm only invoices with content.

This follows alarm configuration, which just moves empty (stub) invoices for
next month.
parent 6137d4b3
......@@ -612,7 +612,8 @@ class TestVifibDefaultUseCase(TestVifibSlapWebServiceMixin):
portal_type="Sale Invoice Transaction",
simulation_state="planned"):
invoice = invoice.getObject()
invoice.confirm()
if len(invoice.contentValues(portal_type='Invoice Line')) > 0:
invoice.confirm()
def stepCheckWaitingInvoice(self, sequence, **kw):
"""
......
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