تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (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
حول هذا المنتدى
المساعدة

How to use Webhook with automated action in Odoo

اشتراك

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

لقد تم الإبلاغ عن هذا السؤال
studioquickstartv17
3 الردود
36366 أدوات العرض
الصورة الرمزية
Damien Dejong (ded)

How to use Webhook with automated action in Odoo

4
الصورة الرمزية
إهمال
Niyas Raphy (Walnut Software Solutions)

https://www.youtube.com/watch?v=9KWuFFd7tEw

Niyas Raphy (Walnut Software Solutions)

For creating new record: https://www.youtube.com/watch?v=D3urHJ9rB2o

David D

HI, 

Now I understand what's the working of Webhook Automation

Thanks and regards

الصورة الرمزية
Damien Dejong (ded)
الكاتب أفضل إجابة

In version 17 of Odoo with studio, you can now use webhook.


Definition

 A webhook is a kind of integration. With that you can launch actions in your database based on an url being triggered.

This means you can integrate 2 Odoo Databases together without the need of a developer. 

How to use it 

Let's take the case of 2 Odoo DB interacting with eachother


Database A is the database where you will make the modification manually

Database B is the database where the Webhook will automatically apply a change


I want to change the salesperson on a sale order on my Database B when I change it on my database A​


In Database A

  • Go on a Sale Order
  • Open studio => Create an Automation 
    • Select the trigger you want (here on save)
    • Create an action => Select "Send Webhook Notification"

  • When creating the action you have this popping up

    • The "URL" is a field that we will only be able to fill in once we have configured Database B
    • The "Fields" allow you to select fields from the sale order and send the information that are in those fields
    • The "Sample Payload" is the code that will be send to the Database B
      • This code will be automatically filled in with the name, model and the id of the record where the action is triggered on
      • Any new field added on the "Fields" will add a new line


  • Save for now the action, we will come back to it after

In Database B

  • Go on a Sale Order
  • Open studio => click on "Webhook"

  • The automation is by default like this


    • The "URL" is what allows you to make the link with the Database A => Copy it and paste it in the field "URL" we had on the automated action in Database A
    • Select "Log Calls" as it will allow you to check what is happening in your Database and if the webhook link has worked or not and what went wrong if didn't work
    • "Target Record​" is a piece of code that allow you to define which record should be updated by this action.
      • By default it is filtering which record is targeted by the info received from the payload you received from the Database A

FOR THE MOMENT

This code is not working between 2 Odoo DB:

​ ​ ​ ​env[payload.get('_model')].browse(payload.get('id'))


 You change it like such :

​ ​ ​ ​ ​model.browse(payload.get('_id'))


  1. We start with model as we just want to say that this action is triggered on the model of the record
  2. Browse allow us to search in what following which is (payload.get('_id')), so you are going to look into the code received from Database A
  3. get('_id')) is going to select the value of the field "id"

FOR THE MOMENT

You should replace the get('id') by get('_id')


When looking at the log received from the automation we can see the info sent by Database A which is the following

​



Even if the code sent was this​:


As you can see, in the code received you have a _ while in the code sent you don't

​

  • You can use any normal server action you want when the Webhook is triggered but you can also use python 
    • By using normal actions like change the value in the field salesperson the information coming from the payload is not going to matter besides the ID
      • The ID of the record updated in Database B is the same ID as the one you triggered the action on in Database A
        • Example: If my Sale Order in Database A has the ID "1" then the Sale Order with the ID "1" in Database B will be updated
    • By using python, you can use the data that are sent in the payload to do specific things
      • For more information about that, you can see this video: https://www.youtube.com/watch?v=wyU0SjOQXRk ?

​

5
الصورة الرمزية
إهمال
Kevin Harrings (kha)

Hello DED! You mention webhooks to integrate 2 Odoo instances. But I guess we can also have some kind on integration between Odoo and another service. What are the limitations using webhooks? And in which cases would a "traditional" integration through an API or FTP server be better?

Damien Dejong (ded)
الكاتب

Hello Kevin,
Yeah of course you can integrate with almost any kind of software as long as they can use a webhook. I think that most of the time you will mostly integrate with other software actually. In the Video I added made by the US, there is an example of integrating with spreadsheet...
Concerning the choice of going through API, FTP server or webhook, it is more the case by case I guess but as I am not a developer I would not really be able to say when you would go for one rather than the other.
But limitation wise, I don't see any as you can use python to launch actions with the Json you received. Maybe the only limitation I can see without using it in a project yet, is that the fields you select to send information to the other DB are limited to the one in the model you are in. For example in a SO you can only send the info of the ID of the customer, you cannot go on the model contact retrieve information such as the name or the phone number of the customer..

Dasadiya Chaitanya

Good Answer and thanks for sharing !

الصورة الرمزية
Niyas Raphy (Walnut Software Solutions)
أفضل إجابة

Hi,
Introduction to webhook in Odoo 17:  Use Webhooks to Send and Receive Data in Odoo

To create record in Odoo Using webhook: Create a New Record Using Webhook in Odoo 17


Thanks

0
الصورة الرمزية
إهمال
الصورة الرمزية
aelaw326@gmail.com
أفضل إجابة

I have a playlist that walks you through this:

https://www.youtube.com/playlist?list=PL1oT_5mNYVTNYxjQ_riHnl4yubyfneK5L

0
الصورة الرمزية
إهمال
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

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

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
How to edit the size of a field on pdf report with studio تم الحل
studio quickstart
الصورة الرمزية
الصورة الرمزية
1
أكتوبر 21
5786
How to set up a dynamic date filter with studio ?
filtering studio quickstart
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
5
أكتوبر 24
13525
Urgent Assistance Needed – Error Encountered During Quotation Modification in odoo Studio
studio Quotation v17
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
2
مايو 24
2589
Translating a Studio report into the contact's language تم الحل
report studio quickstart
الصورة الرمزية
الصورة الرمزية
2
مارس 24
5554
[v17.0] Contact form is unreachable/ "I can't create or edit contacts in Odoo 17" تم الحل
quickstart Quickstart v17
الصورة الرمزية
الصورة الرمزية
2
نوفمبر 23
3318
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "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