Add test to credit invoice
issue6806 review43541002
This commit is contained in:
1 parent
b20e2ba4d3
commit
6aeedca8ef
1 file changed
+12
@@ -176,3 +176,15 @@ Create commission invoices::
|
||||
>>> commissions = Commission.find([])
|
||||
>>> [c.invoice_state for c in commissions]
|
||||
[u'invoiced', u'invoiced']
|
||||
|
||||
Credit invoice::
|
||||
|
||||
>>> invoice, = Invoice.find([
|
||||
... ('type', '=', 'out'),
|
||||
... ('agent', '=', agent.id),
|
||||
... ])
|
||||
>>> credit = Wizard('account.invoice.credit', [invoice])
|
||||
>>> credit.execute('credit')
|
||||
>>> credit_note, = credit.actions[0]
|
||||
>>> credit_note.agent == agent
|
||||
True
|
||||
Reference in new issue
Block a user