Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe committed May 3, 2019
1 parent 4f8c0df commit ff902e7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions l10n_nl_tax_statement/tests/test_l10n_nl_vat_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,20 @@ def test_11_wizard_execute(self):
def test_12_undeclared_invoice(self):
self.invoice_1._onchange_invoice_line_ids()
self.invoice_1.action_invoice_open()
self.invoice_1.move_id.l10n_nl_add_move_in_statement()
move = self.invoice_1.move_id
move.with_context(params={
'model': 'l10n.nl.vat.statement',
'id': self.statement_1.id
}).l10n_nl_add_move_in_statement()
for line in self.invoice_1.move_id.line_ids:
self.assertTrue(line.l10n_nl_vat_statement_include)
self.invoice_1.move_id.l10n_nl_unlink_move_from_statement()
move.with_context(params={
'model': 'l10n.nl.vat.statement',
'id': self.statement_1.id
}).l10n_nl_unlink_move_from_statement()
for line in self.invoice_1.move_id.line_ids:
self.assertFalse(line.l10n_nl_vat_statement_include)

self.statement_1.statement_update()
self.assertEqual(len(self.statement_1.line_ids.ids), 22)

for line in self.statement_1.line_ids:
Expand Down

0 comments on commit ff902e7

Please sign in to comment.