From 3cddae8e8b776fd02c37f722fa7e7a2257de84f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 20 Jul 2026 13:38:38 +0200 Subject: [PATCH] Do not set company on set production cost cron in the test scenario Since bea535142d87 the company can not be set on cron that does not need it. --- modules/production/tests/scenario_production_set_cost.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/production/tests/scenario_production_set_cost.rst b/modules/production/tests/scenario_production_set_cost.rst index f29d62c8f9..a945d65909 100644 --- a/modules/production/tests/scenario_production_set_cost.rst +++ b/modules/production/tests/scenario_production_set_cost.rst @@ -7,7 +7,7 @@ Imports:: >>> from decimal import Decimal >>> from proteus import Model - >>> from trytond.modules.company.tests.tools import create_company, get_company + >>> from trytond.modules.company.tests.tools import create_company >>> from trytond.modules.currency.tests.tools import get_currency >>> from trytond.tests.tools import activate_modules @@ -93,7 +93,6 @@ Launch cron task:: >>> cron_set_cost, = Cron.find([ ... ('method', '=', 'production|set_cost_from_moves'), ... ]) - >>> cron_set_cost.companies.append(get_company()) >>> cron_set_cost.click('run_once') >>> production.reload()