Create a Simple ODOO REST API in 15 minutes for Odoo Mobile Application with HTTP Controller

preview_player
Показать описание
Create a simple Odoo REST API in only 15 minutes! Create an Odoo Application with HTTP Controller. Integrate Odoo with any system.

---------------------------------------------------------------------------------------------
🌍 GET THE MOST OUT OF ODOO!
📝 Learn about the incredible AI ACCELERATOR
📝 Mastering Odoo Development - The Best Odoo Developer Courses
---------------------------------------------------------------------------------------------

See my new Odoo Mobile Toolkit!

🌍 Get the VERY BEST Odoo Developer Coaching & Training

👍 Learn to become an expert Odoo Developer in Record Time

Odoo Development Videos

📝 Transform your business with best-in-class Odoo integration and Developer Workshops. Expert Odoo Consultation and access to the very best Odoo Developers in the business.

To get the very best Odoo Developer Courses visit:

Often when creating mobile applications or systems that will interact with Odoo you will wish to use a REST API. This method gives you great flexibility. In this video we look at one of the most simple implementations, an HTTP GET request using an Odoo controller.

In addition, we learn that Odoo will automatically make sure to protect our models from unauthorized access.

As a bit of a bonus, we see how we can use a try/except block in Python to trap conditions in which we can't retrieve data through the API.

This video has several important concepts that will help you in building Odoo applications.

1. Using the scaffold command to create an Odoo application
2. Modifying the built-in templates and testing your application
3. Using simple HTML commands to format the output
4. Accessing models and records within Odoo
5. Basic FOR loop to go through the record collection
6. Using Try/Except blocks to trap errors

Creating a simple HTTP controller for Odoo isn't difficult. Note that this video demonstrates how to do an HTTP controller. There is a bit different syntax if you wish to use JSON or another method for passing & retrieving data from the controller.
Рекомендации по теме
Комментарии
Автор

Choosing database before accessing the endpoint doesnt make sense to me, say i created an endpoint (url for my another app getting data from my odoo 15), is it possible for them to get the data? Beside using xmlrpc approach.

OnesinusSPT
Автор

thanks bro ur the only one that solved my problem i've been looking for this for a month now i seriously can't thank you enough !!

therealtakenbyWine
Автор

Thank you for your work and explanations. I would like to read better because it's hard to see your screen. Please make a zoom when you are coding for the next video. Thank you again.

dalilahannouche
Автор

Greg,

Do you have any examples of how you would make this controller externally accessible? We want our ADFS system to push data into our employee database. This would be an automated task.

brianlefler
Автор

Hello Greg Moss,

I Have a problem when printing the PDF documents with an error "Error Failed to load PDF document", with a deployment stack using Nginx + uwsgi + Odoo, wkhtmltopdf don't works.

But when I use the same configuration and starting the ERP by using Nginx + Odoo, wkhtmltopdf works perfectly.

Do you have experienced this issue and have an idea how to solved it.

And if you can, we want to see a tutoriaj about the deployment stack using Nginx + uwsgi + Odoo.

Thank you for the video tutorial.

mohammedrai
Автор

I'd like to make a flutter app for my store, and I want the customer to be able to connect to it using credentials stored in Odoo CRM to view my products. Could this work too?

fredyfred
Автор

Greg

Is it possible to separate the API in a deferent application server?

mazenbayad
Автор

Thank you for the video,

When using the http.route url I am getting a 404 page error

any thoughts?

henrysaleman
Автор

In next video can you please increase font size ? By the way nice and simple 👍

zaheerbeg
Автор

Are you using Odoo Community or Enterprise? Do you install everything on your local machine so Odoo start working on Studio?

RFIDSecurityWarehouse
Автор

Clear presentation for quick understanding on the topic. Thanks.

RFIDSecurityWarehouse
Автор

Great video, please create video on posting (creating) data

MatijaGudlin
Автор

hi i have this error
line 179, in __getitem__
return self.models[model_name]
KeyError: 'sale.order'
Which is the cause?

WALIXGAMFOWX
Автор

I am interested in connecting a PHP program to the Odoo program.

joedeir
Автор

hi, thanks for the video, how do you get vscode to work properly with /opt directory, it seems no matter what I try I cant make any changes to the files in my odoo project in vscode due to permission error.

milleniumenterprise
Автор

thanks for the content. I Believe you need to zoom while recording, because aside from the audio, I can't see anything 😅

Roshdyz
Автор

Sir please can you show any of your previous work where flutter app was connected with odoo backend

johntizzy
Автор

It is nice video. It will be more better if you a little zoom in.

nyanmyoaung
Автор

Your tutorial is good and very clear but your Tuto path or playlist is so messy, I don't know where to start and where to continue.

salaizy
Автор

Thank you for the video
It is always nice to see another Odoo Tutorial Video

Since there is a little tutorial about Odoo's Front End framework, can you make a video of that?
Specially after the introduction of OWL.

JS-eleg