تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (BI)
    • المستندات
    • توقيع إلكتروني
    المبيعات
    • إدارة علاقات العملاء
    • المبيعات
    • نقطة البيع للمتاجر
    • نقطة البيع للمطاعم
    • الاشتراكات
    • تأجير
    المواقع الإلكترونية
    • أداة بناء المواقع الإلكترونية
    • متاجر إلكترونية
    • مدونة
    • المنتدى
    • دردشة مباشرة
    • التعليم الإلكتروني
    سلسلة التوريد
    • المستودعات
    • التصنيع
    • إدارة دورة حياة المنتج
    • المشتريات
    • الصيانة
    • الجودة
    الموارد البشرية
    • موظفون
    • التوظيف
    • إجازة عمل
    • التقييمات
    • الإحالات
    • تطبيق الأسطول
    التسويق
    • التسويق الإجتماعي
    • التسويق عبر البريد الإلكتروني
    • التسويق عبر الرسائل النصية
    • فعاليات
    • أتمتة التسويق
    • الاستطلاعات
    الخدمات
    • المشاريع
    • الجداول الزمنية
    • الخدمة الميدانية
    • مكتب المساعدة
    • التخطيط
    • مواعيد
    اﻹنتاجية
    • مناقشة
    • الموافقات
    • إنترنت الأشياء "IoT"
    • بروتوكول ربط المحادثات الصوتية عبر الإنترنت
    • المعرفة
    • WhatsApp
    التطبيقات الخارجية ستوديو أودو منصة أودو السحابية
  • قطاعات الأعمال
    البيع بالتجزئة
    • متجر كتب
    • متجر ملابس
    • متجر أثاث
    • متجر بقالة
    • متجر معدات
    • متجر ألعاب
    الطعام والضيافة
    • بار وحانة
    • المطعم
    • مطعم للوجبات السريعة
    • نزل للضيوف
    • موزّع مشروبات
    • فندق
    العقارات
    • وكالة عقارات
    • شركة هندسة معمارية
    • البناء
    • إدارة العقارات
    • العناية بالحدائق
    • اتحاد مُلاّك العقارات
    استشارة
    • مؤسسة محاسبية
    • شريك أودو
    • وكالة تسويقية
    • منشأة قانونية
    • استقطاب المواهب
    • التدقيق والتوثيق
    التصنيع
    • الأقمشة
    • معدني
    • الأثاث
    • الطعام
    • مصنع خمور
    • هدايا الشركات
    الصحة واللياقة البدنية
    • نادي رياضي
    • متجر نظارات
    • مركز لياقة بدنية
    • الممارسون الصحيون
    • صيدلية
    • صالون تصفيف الشعر
    التجارة
    • عامل صيانة
    • الأجهزة والمعدات التقنية ودعمها
    • أنظمة الطاقة الشمسية
    • صانع أحذية
    • خدمات التنظيف
    • خدمات التكييف (HVAC)
    غير ذلك
    • منظمة غير ربحية
    • وكالة بيئية
    • تأجير لوحات إعلانية
    • تصوير
    • تأجير دراجات
    • بائع وسيط للبرمجيات
    تصفح كافة قطاعات الأعمال
  • مجتمع أودو
    تعلم
    • دروس
    • التوثيق
    • شهادات
    • التدريب
    • مدونة
    • بودكاست
    قم بتعزيز التعليم
    • برنامج تعليم
    • Scale UP! لعبة الأعمال
    • قم بزيارة أودو
    احصل على البرنامج
    • تحميل
    • قارنْ الإصدارات
    • إطلاق
    تعاون
    • جيت هاب "Github"
    • المنتدى
    • فعاليات
    • الترجمات
    • كنْ شريكاً
    • خدمات الشركاء
    • سجل مكتب المحاسبة الخاص بك
    احصل على الخدمات
    • اعثر على شريك
    • اعثر على محاسب
    • قابل أحد مرشدي الأعمال
    • خدمات التنفيذ
    • مراجع العملاء
    • الدعم
    • الترقيات
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    الحصول على عرض توضيحي
  • الأسعار
  • المساعدة

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • إدارة علاقات العملاء
  • e-Commerce
  • المحاسبة
  • المخزون
  • PoS
  • المشروع
  • MRP
All apps
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
المساعدة

Can I set the company with a URL?

اشتراك

تسلم الإشعارات عندما يكون هناك نشاط في هذا المنشور

لقد تم الإبلاغ عن هذا السؤال
browsersessionmulticompanyAPI
2 الردود
1653 أدوات العرض
الصورة الرمزية
mk

Hello,

We have multiple companies, and we are trying to use private windows to keep sessions apart for these companies.

Is it possible to craft a URL somehow, or maybe issue an API command such that the browser loads a company directly? Right now, when I open a new, private window and log in, the company is always set to the primary/default company. Would it be possible to e.g. open https://odoo.example.org/login?company=7​ or similar, such that after login, the 7th company is already selected?

Thank you,

martin

0
الصورة الرمزية
إهمال
الصورة الرمزية
Christoph Farnleitner
أفضل إجابة

This should work:

http://odoo.example.org/web/login?redirect=/web#cids=7

In case you have multiple databases, you want to add a param for it as well:

http://odoo.example.org/web/login?db=db1&redirect=/web#cids=7

If you want multiple companies to be active, make cids comma-separated, i.e. cids=7,8,9


Note that, apparently, the redirect parameter must not be url encoded!

1
الصورة الرمزية
إهمال
mk
الكاتب

It must be Karma, for now I can comment. A bit silly, but okay.

Thanks for the link to the route. I verified that `redirect` in fact works using `/my` as you suggested. I've tried this on both, Odoo 17 and 18.

I also found that `cids` is just a cookie, and that if I change its value and reload, then a different company is selected. Sometimes the things are much easier than you think, and I didn't need to study all the VoodooScript, lol. Thank you for helping me on this!

الصورة الرمزية
mk
الكاتب أفضل إجابة

When I click the comment button under your post, nothing happens. Thus I am sending a top-level reply. I am sorry…

Hey Christoph, thank you so much for your quick response!

I could not get the suggested URL parameter to work, neither in the single, nor in the multiple version, neither URL-encoded nor verbatim.

Can you point me to where you got this information from, so I can research a bit more, and mess around a bit?

I also looked on the network console and I couldn't even find out what is happening when I use the company selector to change companies. There must be some sort of dark, obscure voodoo magic going on. I don't like it :(.

1
الصورة الرمزية
إهمال
mk
الكاتب

I can reply to my own comment, but the speech bubble below yours is greyed out and I cannot. What gives?

Christoph Farnleitner

Some call it Voodoo, others call it JavaScript, owl in this case to be more precise. None the less, I feel you on that one... Source is, well, source code; and verification in localhost as well as on odoo.sh. The /web/login route is defined here:
https://github.com/odoo/odoo/blob/18.0/addons/web/controllers/home.py#L97 and 'cids' is commonly used throughout those voodoo-files to refer to company_ids. Now, I should mention, that a test in demo.odoo.com did in fact not succeed - which can be due to 18.3 working just that bit differently, or, what I would assume more, the cookies stored on that session are messing with the known default company. In any case, you may actually want to try to clear your browser cookies unless you're operating incognito already. What version of Odoo are you running exactly?
Also, to verify your redirect aren't completely broken for what ever reason, you can try to test a redirect to a portal page, such as /my upon login as well.
And, about commenting: https://www.odoo.com/forum/1/faq/karma - I would assume 1k is the threshold but I have honestly no clue.

هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
How to create invoices for all companies through External API
invoice multicompany API
الصورة الرمزية
الصورة الرمزية
1
أبريل 21
5732
Automatically send a user to the login page when a session expires
browser session odooV12 odoov12
الصورة الرمزية
0
أبريل 25
1909
Odoo can only login with 1 user 1 browser
browser session login v15
الصورة الرمزية
0
فبراير 24
1977
Use the rest-API to import from an external application the data of the trading session
api session restfulapi API
الصورة الرمزية
0
أكتوبر 18
7819
Configuration for secure web client
browser session ssl encryption
الصورة الرمزية
0
مارس 15
5172
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "Github"
  • المشغل الآلي رنبوت
  • الترجمات
خدماتنا
  • استضافة أودو إس إتش
  • الدعم
  • الترقية
  • التطويرات المخصصة
  • التعليم
  • اعثر على محاسب
  • اعثر على شريك
  • كنْ شريكاً
معلومات عنا
  • شركتنا
  • أصول العلامة التجارية
  • اتصلْ بنا
  • الوظائف
  • فعاليات
  • بودكاست
  • مدونة
  • عملاء
  • قانوني • الخصوصية
  • الحماية
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

أودو هو عبارة عن مجموعة من تطبيقات الأعمال مفتوحة المصدر التي تغطي جميع احتياجات شركتك، مثل: إدارة علاقات العملاء والتجارة الإلكترونية والمحاسبة والمخزون ونقاط البيع وإدارة المشاريع وما إلى ذلك.

ما يجعل من أودو مميزاً هو هدفه بأن يكون سهل الاستخدام للغاية ومتكاملاً تمامًا في الوقت ذاته.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now