Skip to content
Snippets Groups Projects
Commit 6648418880a7 authored by Etienne Ferriere's avatar Etienne Ferriere
Browse files

Fix unit test on mass validation of monthly statements for a bug linked to the

execution date.
parent 3ba3d0ad4050
No related branches found
1 merge request!33Fix unit test on mass validation of monthly statements for a bug linked to the
Pipeline #112007 passed
......@@ -2,6 +2,8 @@
==========
* Enable mass validation of monthly statements.
* Fix unit test on mass validation of monthly statements for a bug linked to
the execution date.
11.0.1.6.1
==========
......
......@@ -240,6 +240,14 @@
| self.env.ref("base.res_partner_2")
| self.env.ref("base.res_partner_3")
):
self.env.cr.execute(
"""DELETE FROM account_invoice CASCADE
WHERE partner_id = %(partner_id)s;
DELETE FROM account_move CASCADE
WHERE partner_id = %(partner_id)s;
""",
{"partner_id": partner.id},
)
invoice = self._makeInvoice(partner)
self._validateInvoices(invoice)
line_to_pay = invoice.move_id.line_ids.filtered(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment