Commit 588d3c02 authored by Jérome Perrin's avatar Jérome Perrin

we add Purchase Invoice Transaction Line in Purchase Invoice


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12850 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 53b36b2a
......@@ -123,10 +123,10 @@ class TestAccounting_l10n_M9(ERP5TypeTestCase):
invoice = self.getAccountingModule().newContent(
portal_type='Purchase Invoice Transaction',
created_by_builder=1)
invoice.newContent(portal_type='Accounting Transaction Line',
invoice.newContent(portal_type='Purchase Invoice Transaction Line',
source_value=expense_account,
quantity=amount)
invoice.newContent(portal_type='Accounting Transaction Line',
invoice.newContent(portal_type='Purchase Invoice Transaction Line',
source_value=payable_account,
quantity=-amount)
invoice.edit(**kw)
......@@ -157,7 +157,7 @@ class TestAccounting_l10n_M9(ERP5TypeTestCase):
invoice.recursiveImmediateReindexObject()
self.getWorkflowTool().doActionFor(
transmission_sheet,
'emit_action') # XXX is this transition name good?
'emit_action')
self.assertEquals(transmission_sheet.getValidationState(),
'new')
......
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