Skip to content

Commit

Permalink
fix scenario invoice supplier
Browse files Browse the repository at this point in the history
  • Loading branch information
lukio committed Apr 24, 2019
1 parent da79bc3 commit 0f56210
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/scenario_invoice_supplier.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ Credit invoice::
>>> credit_note.tipo_comprobante == '003'
True
>>> credit_note.reference
>>> credit_note.ref_pos_number = '1'
>>> credit_note.ref_voucher_number = '55'
>>> credit_note.invoice_date = today
>>> credit_note.click('validate_invoice')
>>> credit_note.reference
'00001-00000055'

Create a draft and post invoice::

Expand All @@ -240,7 +246,7 @@ Credit invoice::
>>> credit.form.with_refund = False
>>> credit.execute('credit')
>>> credit_note, = Invoice.find(
... [('type', '=', 'in'), ('id', '!=', invoice.id)])
... [('type', '=', 'in'), ('state', '=', 'draft')])
>>> credit_note.state
'draft'
>>> credit_note.untaxed_amount == -invoice.untaxed_amount
Expand Down

0 comments on commit 0f56210

Please sign in to comment.