From cfd474c82956deafbc50c418a809f631f7113e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 12 Apr 2019 16:48:49 +0200 Subject: [PATCH] Search cron by method name issue8201 --- tests/scenario_account_payment_stripe.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/scenario_account_payment_stripe.rst b/tests/scenario_account_payment_stripe.rst index 4057ed5c30..e5206c8287 100644 --- a/tests/scenario_account_payment_stripe.rst +++ b/tests/scenario_account_payment_stripe.rst @@ -164,8 +164,7 @@ Run cron:: >>> Cron = Model.get('ir.cron') >>> cron_customer_create, = Cron.find([ - ... ('model', '=', 'account.payment.stripe.customer'), - ... ('function', '=', 'stripe_create'), + ... ('method', '=', 'account.payment.stripe.customer|stripe_create'), ... ]) >>> cron_customer_create.companies.append(Company(company.id)) >>> cron_customer_create.click('run_once') @@ -201,8 +200,7 @@ Delete customer:: Run cron:: >>> cron_customer_delete, = Cron.find([ - ... ('model', '=', 'account.payment.stripe.customer'), - ... ('function', '=', 'stripe_delete'), + ... ('method', '=', 'account.payment.stripe.customer|stripe_delete'), ... ]) >>> cron_customer_delete.companies.append(Company(company.id)) >>> cron_customer_delete.click('run_once')