changeset 97986ba50c8b in modules/stock_supply:5.0 details: https://hg.tryton.org/modules/stock_supply?cmd=changeset;node=97986ba50c8b description: Add purchase scenario user to purchase request group
It is needed to execute the purchase request wizard since issue9108. issue9137 review274961002 (grafted from 591f0351b359209d5e6fe5e17b9f32df3c5e583f) diffstat: tests/scenario_stock_supply_purchase_request.rst | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diffs (21 lines): diff -r c5eaedd7173f -r 97986ba50c8b tests/scenario_stock_supply_purchase_request.rst --- a/tests/scenario_stock_supply_purchase_request.rst Sun Mar 01 21:03:51 2020 +0100 +++ b/tests/scenario_stock_supply_purchase_request.rst Wed Mar 11 15:18:15 2020 +0100 @@ -78,12 +78,14 @@ >>> purchase_user.name = 'Purchase' >>> purchase_user.login = 'purchase' >>> purchase_user.main_company = company - >>> purchase_group, = Group.find([ - ... ('name', '=', 'Purchase') + >>> purchase_groups = Group.find(['OR', + ... ('name', '=', "Purchase"), + ... ('name', '=', "Purchase Request"), ... ]) - >>> purchase_user.groups.append(purchase_group) + >>> purchase_user.groups.extend(purchase_groups) >>> purchase_user.save() + Create account category:: >>> ProductCategory = Model.get('product.category')