Skip to content

Commit

Permalink
[FIX] Test remove workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronHForgeFlow authored and bjeficent committed Dec 10, 2018
1 parent b77782d commit 3fa4870
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions account_operating_unit/tests/test_account_operating_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# © 2016-17 Eficent Business and IT Consulting Services S.L.
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from openerp.addons.account.tests import account_test_classes
from odoo.addons.account.tests.account_test_classes import AccountingTestCase


class TestAccountOperatingUnit(account_test_classes.AccountingTestCase):
class TestAccountOperatingUnit(AccountingTestCase):

def setUp(self):
super(TestAccountOperatingUnit, self).setUp()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_create_invoice_validate(self):
self.invoice_model.sudo(self.user_id.id).create(
self._prepare_invoice(self.b2b.id))
# Validate the invoice
self.invoice.sudo(self.user_id.id).signal_workflow('invoice_open')
self.invoice.sudo(self.user_id.id).action_invoice_open()
# Check Operating Units in journal entries
all_op_units = all(move_line.operating_unit_id.id == self.b2b.id for
move_line in self.invoice.move_id.line_ids)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_payment_from_invoice(self):
self.invoice = self.invoice_model.sudo(self.user_id.id).create(
self._prepare_invoice(self.b2b.id))
# Validate the invoice
self.invoice.sudo(self.user_id.id).signal_workflow('invoice_open')
self.invoice.sudo(self.user_id.id).action_invoice_open()

# Pay the invoice using a cash journal associated to the main company
ctx = {'active_model': 'account.invoice', 'active_ids': [
Expand Down

0 comments on commit 3fa4870

Please sign in to comment.