Commit 89cea970 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_accounting: Manual Trade condition isnt required on a Sale Order.

parent b2e5e04a
......@@ -28,7 +28,8 @@ reversal_transaction.edit(
title="Reversal Transaction for %s" % context.getTitle(),
causality_value=context,
description="Reversal Transaction for %s" % context.getTitle(),
specialise_value=portal.sale_trade_condition_module.slapos_manual_accounting_trade_condition,
specialise_value=None,
ledger=None,
)
for line in reversal_transaction.getMovementList():
......
......@@ -284,11 +284,10 @@ class TestSlapOSAccounting(SlapOSTestCaseMixin):
self.assertTrue(invoice.SaleInvoiceTransaction_isLettered())
self.assertTrue(reversale_invoice.SaleInvoiceTransaction_isLettered())
# Another trade condition
self.assertEqual(
reversale_invoice.getSpecialise(),
"sale_trade_condition_module/slapos_manual_accounting_trade_condition")
self.assertEqual(reversale_invoice.getSpecialise(), None)
self.assertEqual(reversale_invoice.getLedger(), None)
self.tic()
@withAbort
......
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