์ฝ˜ํ…์ธ ๋กœ ๊ฑด๋„ˆ๋›ฐ๊ธฐ
Odoo ๋ฉ”๋‰ด
  • ๋กœ๊ทธ์ธ
  • ๋ฌด๋ฃŒ ์ฒดํ—˜ํ•˜๊ธฐ
  • ์•ฑ
    ์žฌ๋ฌด ๊ด€๋ฆฌ
    • ํšŒ๊ณ„
    • ์ฒญ๊ตฌ์„œ ๊ด€๋ฆฌ
    • ๋น„์šฉ ๊ด€๋ฆฌ
    • ์Šคํ”„๋ ˆ๋“œ์‹œํŠธ (BI)
    • ๋ฌธ์„œ
    • ์ „์ž ์„œ๋ช…
    ํŒ๋งค
    • CRM
    • ํŒ๋งค
    • POS ์Šคํ† ์–ด
    • POS ๋ ˆ์Šคํ† ๋ž‘
    • ๊ตฌ๋…
    • ๋ Œํƒˆ
    ์›น์‚ฌ์ดํŠธ
    • ์›น์‚ฌ์ดํŠธ ๋นŒ๋”
    • ์ด์ปค๋จธ์Šค
    • ๋ธ”๋กœ๊ทธ
    • ํฌ๋Ÿผ
    • ์‹ค์‹œ๊ฐ„ ์ฑ„ํŒ…
    • ์˜จ๋ผ์ธ ํ•™์Šต ๊ด€๋ฆฌ
    ๊ณต๊ธ‰๋ง
    • ์žฌ๊ณ  ๊ด€๋ฆฌ
    • ์ œ์กฐ ๊ด€๋ฆฌ
    • ์ œํ’ˆ ์ˆ˜๋ช…์ฃผ๊ธฐ ๊ด€๋ฆฌ (PLM)
    • ๋งค์ž…
    • ์œ ์ง€๊ด€๋ฆฌ
    • ํ’ˆ์งˆ
    ์ธ์ ์ž์› ๊ด€๋ฆฌ
    • ์ง์›
    • ์ฑ„์šฉ
    • ํœด๊ฐ€ ๊ด€๋ฆฌ
    • ์ธ์‚ฌ ํ‰๊ฐ€
    • ์ธ์žฌ ์ถ”์ฒœ
    • ์ฐจ๋Ÿ‰ ๊ด€๋ฆฌ
    ๋งˆ์ผ€ํŒ…
    • ์†Œ์…œ ๋งˆ์ผ€ํŒ…
    • ์ด๋ฉ”์ผ ๋งˆ์ผ€ํŒ…
    • SMS ๋งˆ์ผ€ํŒ…
    • ํ–‰์‚ฌ
    • ๋งˆ์ผ€ํŒ… ์ž๋™ํ™”
    • ์„ค๋ฌธ ์กฐ์‚ฌ
    ์„œ๋น„์Šค
    • ํ”„๋กœ์ ํŠธ
    • ์ž‘์—… ๊ธฐ๋ก
    • ํ˜„์žฅ ์„œ๋น„์Šค
    • ํ—ฌํ”„๋ฐ์Šคํฌ
    • ์ผ์ • ๊ด€๋ฆฌ
    • ์ผ์ • ์˜ˆ์•ฝ
    ์ƒ์‚ฐ์„ฑ
    • ๋ฉ”์ผ ๋ฐ ์ฑ„ํŒ…
    • ์ „์ž ๊ฒฐ์žฌ
    • IoT
    • VoIP
    • ์ง€์‹ ์„ผํ„ฐ
    • WhatsApp
    ํƒ€์‚ฌ ์•ฑ Odoo ์ŠคํŠœ๋””์˜ค Odoo ํด๋ผ์šฐ๋“œ ํ”Œ๋žซํผ
  • ์ธ๋”์ŠคํŠธ๋ฆฌ
    ๋ฆฌํ…Œ์ผ
    • ์„œ์ 
    • ์˜๋ฅ˜ ๋งค์žฅ
    • ๊ฐ€๊ตฌ์ 
    • ์‹๋ฃŒํ’ˆ์ 
    • ์ฒ ๋ฌผ์ 
    • ์žฅ๋‚œ๊ฐ ๊ฐ€๊ฒŒ
    ์‹์Œ๋ฃŒ & ์ˆ™๋ฐ•์—…
    • ๋ฐ” & ํŽ
    • ๋ ˆ์Šคํ† ๋ž‘
    • ํŒจ์ŠคํŠธํ‘ธ๋“œ
    • ๊ฒŒ์ŠคํŠธ ํ•˜์šฐ์Šค
    • ์Œ๋ฃŒ ์œ ํ†ต์—…์ฒด
    • ํ˜ธํ…”
    ๋ถ€๋™์‚ฐ
    • ๋ถ€๋™์‚ฐ ์ค‘๊ฐœ์—…์ฒด
    • ๊ฑด์ถ• ํšŒ์‚ฌ
    • ๊ฑด์„ค
    • ๋ถ€๋™์‚ฐ ๊ด€๋ฆฌ
    • ๊ฐ€๋“œ๋‹
    • ๋ถ€๋™์‚ฐ ์†Œ์œ ์ž ํ˜‘ํšŒ
    ์ปจ์„คํŒ…
    • ํšŒ๊ณ„ ๋ฒ•์ธ
    • Odoo ํŒŒํŠธ๋„ˆ
    • ๋งˆ์ผ€ํŒ… ๋Œ€ํ–‰์‚ฌ
    • ๋ฒ•๋ฅ  ์‚ฌ๋ฌด์†Œ
    • ์ธ์žฌ ์˜์ž…
    • ๊ฐ์‚ฌ ๋ฐ ์ธ์ฆ
    ์ œ์กฐ ๊ด€๋ฆฌ
    • ํ…์Šคํƒ€์ผ
    • ๋ฉ”ํƒˆ
    • ๊ฐ€๊ตฌ
    • ํ‘ธ๋“œ
    • ์–‘์กฐ์žฅ
    • ๊ธฐ์—…์šฉ ์„ ๋ฌผ
    ๊ฑด๊ฐ• & ํ”ผํŠธ๋‹ˆ์Šค
    • ์Šคํฌ์ธ  ํด๋Ÿฝ
    • ์•ˆ๊ฒฝ์ 
    • ํ”ผํŠธ๋‹ˆ์Šค ์„ผํ„ฐ
    • ์›ฐ๋‹ˆ์Šค ์ „๋ฌธ๊ฐ€
    • ์•ฝ๊ตญ
    • ๋ฏธ์šฉ์‹ค
    ์‚ฌ์—…
    • ํ•ธ๋””๋งจ
    • IT ํ•˜๋“œ์›จ์–ด ๋ฐ ์ง€์› ์„œ๋น„์Šค
    • ํƒœ์–‘ ์—๋„ˆ์ง€ ์‹œ์Šคํ…œ
    • ์ œํ™”์—…์ฒด
    • ํด๋ฆฌ๋‹ ์„œ๋น„์Šค
    • HVAC ์„œ๋น„์Šค
    ๊ธฐํƒ€
    • ๋น„์˜๋ฆฌ ๋‹จ์ฒด
    • ํ™˜๊ฒฝ ์—์ด์ „์‹œ
    • ๊ด‘๊ณ ํŒ ์ž„๋Œ€
    • ์‚ฌ์ง„
    • ์ž์ „๊ฑฐ ์ž„๋Œ€
    • ์†Œํ”„ํŠธ์›จ์–ด ๋ฆฌ์…€๋Ÿฌ
    ์ „์ฒด ์ธ๋”์ŠคํŠธ๋ฆฌ ์ฐพ์•„๋ณด๊ธฐ
  • ์ปค๋ฎค๋‹ˆํ‹ฐ
    ํ•™์Šต
    • ํŠœํ† ๋ฆฌ์–ผ
    • ๋ฌธ์„œ
    • ์ธ์ฆ
    • ํ›ˆ๋ จ
    • ๋ธ”๋กœ๊ทธ
    • ํŒŸ์บ์ŠคํŠธ
    ๊ต์œก ์—ญ๋Ÿ‰ ๊ฐ•ํ™”
    • ๊ต์œก ํ”„๋กœ๊ทธ๋žจ
    • Scale-Up! ๊ฒฝ์˜๊ด€๋ฆฌ ๊ฒŒ์ž„
    • Odoo์— ๋ฐฉ๋ฌธํ•ด๋ณด์„ธ์š”
    ์†Œํ”„ํŠธ์›จ์–ด ์‹ ์ฒญ
    • ๋‹ค์šด๋กœ๋“œ
    • ๋ฒ„์ „ ์‚ดํŽด๋ณด๊ธฐ
    • ๋ฆด๋ฆฌ์ฆˆ ๋‚ด์—ญ
    ํ˜‘์—…
    • Github
    • ํฌ๋Ÿผ
    • ํ–‰์‚ฌ
    • ๋ฒˆ์—ญ
    • ํŒŒํŠธ๋„ˆ ๋“ฑ๋ก
    • ํŒŒํŠธ๋„ˆ ๋Œ€์ƒ ์„œ๋น„์Šค
    • ํšŒ๊ณ„ ๋ฒ•์ธ ์ •๋ณด ๋“ฑ๋ก
    ์„œ๋น„์Šค ์‹ ์ฒญ
    • ํŒŒํŠธ๋„ˆ ๊ฒ€์ƒ‰
    • ํšŒ๊ณ„์‚ฌ ๊ฒ€์ƒ‰
    • ์ „๋ฌธ ์ƒ๋‹ด ์˜ˆ์•ฝ
    • ๊ตฌํ˜„ ์„œ๋น„์Šค
    • ๊ณ ๊ฐ ์ •๋ณด
    • ๊ณ ๊ฐ ์ง€์›
    • ์—…๊ทธ๋ ˆ์ด๋“œ
    Github ์œ ํŠœ๋ธŒ ํŠธ์œ„ํ„ฐ ๋งํฌ๋“œ์ธ ์ธ์Šคํƒ€๊ทธ๋žจ ํŽ˜์ด์Šค๋ถ ์Šคํฌํ‹ฐํŒŒ์ด
    +1 (650) 691-3277
    ๋ฐ๋ชจ ์˜ˆ์•ฝํ•˜๊ธฐ
  • ์š”๊ธˆ์ œ
  • ๊ณ ๊ฐ ์ง€์›

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

  • CRM
  • e-Commerce
  • ํšŒ๊ณ„
  • ์žฌ๊ณ  ๊ด€๋ฆฌ
  • PoS
  • ํ”„๋กœ์ ํŠธ
  • MRP
All apps
์ปค๋ฎค๋‹ˆํ‹ฐ์— ์ฐธ์—ฌํ•˜๋ ค๋ฉด ํšŒ์› ๊ฐ€์ž…์„ ํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.
๋ชจ๋“  ๊ฒŒ์‹œ๋ฌผ ์‚ฌ์šฉ์ž ๋ฐฐ์ง€
ํƒœ๊ทธ (๋ชจ๋‘ ๋ณด๊ธฐ)
odoo accounting v14 pos v15
๊ฒŒ์‹œํŒ ์ •๋ณด
์ปค๋ฎค๋‹ˆํ‹ฐ์— ์ฐธ์—ฌํ•˜๋ ค๋ฉด ํšŒ์› ๊ฐ€์ž…์„ ํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.
๋ชจ๋“  ๊ฒŒ์‹œ๋ฌผ ์‚ฌ์šฉ์ž ๋ฐฐ์ง€
ํƒœ๊ทธ (๋ชจ๋‘ ๋ณด๊ธฐ)
odoo accounting v14 pos v15
๊ฒŒ์‹œํŒ ์ •๋ณด
๋„์›€๋ง

How can I make a HTTP Request to external API in Automated Actions

๊ตฌ๋…

์ด ๊ฒŒ์‹œ๋ฌผ์— ํ™œ๋™์ด ์žˆ์œผ๋ฉด ์•Œ๋ฆผ ๋ฐ›๊ธฐ

์‹ ๊ณ ๋œ ์งˆ๋ฌธ์ž…๋‹ˆ๋‹ค
API WORKFLOW PYTHONAutomatedActions
1 ํšŒ์‹ 
33235 ํ™”๋ฉด
์•„๋ฐ”ํƒ€
Belmar Santillana Guitierrez

I want to make a request to an external API when I create a record. It's possible to do that using python code in automated actions? or what's the best approach in order to get that?ย 

๐Ÿ––

PD: I have zero experience in Odoo development. But I'm a developer ;)

0
์•„๋ฐ”ํƒ€
์ทจ์†Œ
Jack Dane

Hello Belmar,

To extend onto Husain's answer, regarding documentation, you want to look at building a module to install into Odoo.

https://www.odoo.com/documentation/14.0/howtos/backend.html

You will need to extend a model which would depend on where you want to call the API request. Specifically defined here in the documentation:

https://www.odoo.com/documentation/14.0/howtos/backend.html#model-inheritance

Once you have the function defined on the model, you are able to call this function in the automated action. Just choose python execution and you have selected the same model you have extended and write the code "record.your_function()".

I hope this explains how to achieve this better.

Thanks,

์•„๋ฐ”ํƒ€
Husain Rangwala
๋ฒ ์ŠคํŠธ ๋‹ต๋ณ€

Hello Belmar

Yes you can call Extenal API with help of automated actions while you create record and also you can override create method to call your API.
You can call method for automated action like model.method_name() ย 
Make sure to handle response for both success and failure cases to avoid Errors.

Thanks

3
์•„๋ฐ”ํƒ€
์ทจ์†Œ
Belmar Santillana Guitierrez
์ž‘์„ฑ์ž

Thank you. Do you know any documentation that explains how to archive this?

Husain Rangwala

You can see odoo documentation for building and inheriting module as Jack dane shared link.

If you are asking about to call API then you can use python requests module to call API.

Ex:

import json

import requests

headers = {"Content-Type": "application/json", "Accept": "application/json", "Catch-Control": "no-cache"}

url = "https://example.com"

json_data = {'name' : 'test'}

response = requests.post(url, data=json.dumps(json_data), headers=headers)

This is simple post request with json type.

Hope this will help you.

ํ† ๋ก ์ด ์žฌ๋ฏธ์žˆ์œผ์‹ ๊ฐ€์š”? ์ง์ ‘ ์ฐธ์—ฌํ•ด๋ณด์„ธ์š”!

์ง€๊ธˆ ๋ฐ”๋กœ ๊ฐ€์ž…ํ•˜์—ฌ ๋…์  ์„œ๋น„์Šค๋ฅผ ์ด์šฉํ•ด๋ณด๊ณ  ํŠน๋ณ„ํ•œ ์ปค๋ฎค๋‹ˆํ‹ฐ์™€ ์†Œํ†ตํ•˜์„ธ์š”!

๊ฐ€์ž…
๊ด€๋ จ ๊ฒŒ์‹œ๋ฌผ ๋‹ต๊ธ€ ํ™”๋ฉด ํ™œ๋™
Fix Automated Action Based on Time Condition, From Odoo AutoAction(Done), to Code(Not yet)
AutomatedActions
์•„๋ฐ”ํƒ€
์•„๋ฐ”ํƒ€
์•„๋ฐ”ํƒ€
3
11์›” 25
716
How to copy Transfer lines with an Automated Action
AutomatedActions
์•„๋ฐ”ํƒ€
0
9์›” 24
2337
Automated action sends notification
AutomatedActions
์•„๋ฐ”ํƒ€
0
5์›” 24
27
Automated Action: 'Compute Price from BoM' when BOM is changed ํ•ด๊ฒฐ ์™„๋ฃŒ
AutomatedActions
์•„๋ฐ”ํƒ€
์•„๋ฐ”ํƒ€
1
4์›” 24
6101
Create a new record automation
AutomatedActions
์•„๋ฐ”ํƒ€
0
3์›” 24
2481
์ปค๋ฎค๋‹ˆํ‹ฐ
  • ํŠœํ† ๋ฆฌ์–ผ
  • ๋ฌธ์„œ
  • ํฌ๋Ÿผ
์˜คํ”ˆ ์†Œ์Šค
  • ๋‹ค์šด๋กœ๋“œ
  • Github
  • Runbot
  • ๋ฒˆ์—ญ
์„œ๋น„์Šค
  • Odoo.sh ํ˜ธ์ŠคํŒ…
  • ๊ณ ๊ฐ ์ง€์›
  • ์—…๊ทธ๋ ˆ์ด๋“œ
  • ๋งž์ถค ๊ฐœ๋ฐœ
  • ํ•™์Šต
  • ํšŒ๊ณ„์‚ฌ ๊ฒ€์ƒ‰
  • ํŒŒํŠธ๋„ˆ ๊ฒ€์ƒ‰
  • ํŒŒํŠธ๋„ˆ ๋“ฑ๋ก
ํšŒ์‚ฌ ์†Œ๊ฐœ
  • ํšŒ์‚ฌ ์†Œ๊ฐœ
  • ๋ธŒ๋žœ๋“œ ์ž์‚ฐ
  • ์ƒ๋‹ด ๋ฌธ์˜
  • ์ธ์žฌ ์ฑ„์šฉ
  • ํ–‰์‚ฌ
  • ํŒŸ์บ์ŠคํŠธ
  • ๋ธ”๋กœ๊ทธ
  • ๊ณ ๊ฐ ์‚ฌ๋ก€
  • ๋ฒ•์ ๊ณ ์ง€ โ€ข ๊ฐœ์ธ์ •๋ณด
  • ๋ณด์•ˆ
ุงู„ู’ุนูŽุฑูŽุจูŠู‘ุฉ 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

Odoo๋Š” CRM, ์ด์ปค๋จธ์Šค, ํšŒ๊ณ„, ์žฌ๊ณ , POS, ํ”„๋กœ์ ํŠธ ๊ด€๋ฆฌ ๋“ฑ ๊ธฐ์—…์˜ ๋ชจ๋“  ์š”๊ตฌ ์‚ฌํ•ญ์„ ์ถฉ์กฑํ•˜๋„๋ก ์„ค๊ณ„๋œ ์˜คํ”ˆ ์†Œ์Šค ๊ธฐ๋ฐ˜์˜ ํ†ตํ•ฉ ๋น„์ฆˆ๋‹ˆ์Šค ์•ฑ ์ œํ’ˆ๊ตฐ์ž…๋‹ˆ๋‹ค.

Odoo์˜ ๊ฐ„ํŽธํ•œ UI์™€ ์™„๋ฒฝํ•˜๊ฒŒ ํ†ตํ•ฉ๋œ ๊ธฐ๋Šฅ์„ ์ง์ ‘ ํ™•์ธํ•ด ๋ณด์„ธ์š”.

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