details: https://code.tryton.org/tryton/commit/f32b5f7c70a7
branch: default
user: Cédric Krier <[email protected]>
date: Mon Jul 20 13:38:38 2026 +0200
description:
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.
diffstat:
modules/production/tests/scenario_production_set_cost.rst | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r d414eccc0ad5 -r f32b5f7c70a7
modules/production/tests/scenario_production_set_cost.rst
--- a/modules/production/tests/scenario_production_set_cost.rst Mon Jul 13
18:26:34 2026 +0200
+++ b/modules/production/tests/scenario_production_set_cost.rst Mon Jul 20
13:38:38 2026 +0200
@@ -7,7 +7,7 @@
>>> 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 @@
>>> 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()