Skip to content

Commit

Permalink
Merge PR #3315 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by rousseldenis
  • Loading branch information
OCA-git-bot committed Sep 17, 2024
2 parents d06fc8f + f87699a commit 03f4e46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion sale_fully_invoiced/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from . import test_sale_fully_delivered
from . import test_sale_fully_invoiced
6 changes: 0 additions & 6 deletions sale_fully_invoiced/tests/test_sale_fully_invoiced.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,11 @@ def test_00_sale_order_not_delivered(self):
def test_01_sale_order_delivered_not_invoiced(self):
"""If not invoiced it should not be auto closed"""
self.so.action_confirm()
picking = self.so.picking_ids
picking.button_validate()
self.assertEqual(self.so.invoice_status_validated, "to invoice")

def test_02_sale_order_delivered_invoiced_not_posted(self):
"""If the invoice is not posted is the same thing"""
self.so.action_confirm()
picking = self.so.picking_ids
picking.button_validate()
self.so._create_invoices()
self.assertEqual(self.so.invoice_status_validated, "to invoice")

Expand All @@ -64,8 +60,6 @@ def test_03_sale_order_delivered_invoiced_posted(self):
If invoiced and validated then it should close the SO
"""
self.so.action_confirm()
picking = self.so.picking_ids
picking.button_validate()
self.so._create_invoices()
self.so.invoice_ids._post()
self.assertEqual(self.so.invoice_status_validated, "invoiced")

0 comments on commit 03f4e46

Please sign in to comment.