mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] account_banking_tests: LocalService is now deprecated
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
##############################################################################
|
||||
from datetime import datetime
|
||||
from openerp.tests.common import SingleTransactionCase
|
||||
from openerp import netsvc
|
||||
from openerp import workflow
|
||||
|
||||
|
||||
class TestPaymentRoundtrip(SingleTransactionCase):
|
||||
@@ -189,9 +189,8 @@ class TestPaymentRoundtrip(SingleTransactionCase):
|
||||
invoice_model.create(
|
||||
cr, uid, values, context={
|
||||
'type': 'in_invoice'}))
|
||||
wf_service = netsvc.LocalService('workflow')
|
||||
for invoice_id in self.invoice_ids:
|
||||
wf_service.trg_validate(
|
||||
workflow.trg_validate(
|
||||
uid, 'account.invoice', invoice_id, 'invoice_open', cr)
|
||||
self.assert_invoices_state('open')
|
||||
|
||||
@@ -281,8 +280,7 @@ class TestPaymentRoundtrip(SingleTransactionCase):
|
||||
'No payment line created from invoice 2 or with the wrong '
|
||||
'communication')
|
||||
|
||||
wf_service = netsvc.LocalService('workflow')
|
||||
wf_service.trg_validate(
|
||||
workflow.trg_validate(
|
||||
uid, 'payment.order', self.payment_order_id, 'open', cr)
|
||||
self.assert_payment_order_state('open')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user