diff --git a/supplychain/init.py b/supplychain/init.py index a9a401e..65ca844 100644 --- a/supplychain/init.py +++ b/supplychain/init.py @@ -313,7 +313,7 @@ async def delete_supply_contract_item(request, params_kw): async def create_sub_reseller(request, params_kw): """Create a new sub-reseller with orgid for discount/accounting.""" - env = ServerEnv() + env = request._run_ns user_id = await env.get_user() resellerid = await env.get_userorgid() data = params_kw