Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Odoo 14 - Integration of storage positioning lift

Subscribe

Get notified when there's activity on this post

This question has been flagged
moduleapistorage
2885 Views
Avatar
Torsten

Hi, I would like to develop my first module in Odoo. We have a storage positioning lift which has ist's own internal inventory management. This system can be controlled by an API (sending and receiving XML files) which I have already converted to Python - this part is completed and working.


Now I need to integrate this API in Odoo. The process for the users should be the same as manually picking items from storage racks outside the positioning system. First all item transfer records with items that are stored inside the storage lift are sent to the lift controller and after finishing the storage lift will send a response with all item transfers which should update the stock posting order in Odoo.


What would you suggest is the best place to intercept in Odoo's storage logic to trigger the API? There should be as few as possible extra user interactions. I have just started learning Odoo's module programming.


Maybe is there any existing  similar project (on github) to learn from?


Torsten

1
Avatar
Discard
Mostafa Barmshory

Did you finish your module? I`m new in odoo and want to know how to do similar things.

Torsten
Author

Hi Mostafa. Yes, I finished my module. Since I wrote this post nearly a half year has passed - within this time I have learned very very much about Odoo's programming - every day. And now I know why nobody has answered my question - because it is much too complex.

However I can throw in some key information how I did it for my case.

First I would suggest to implement the API for your storage system in Python. Maybe your vendor already has some units for you. In my case it is an Haenel System with FTP text file transfer with a lot of regex parsing stuff...

Next it can be helpful to create a configuration model for your api (for storing connection settings, API keys, auth data, ...). To do this, inherit a model from 'res.config.settings', insert your fields and make use of 'config_parameter=' in your fields. To complete this part, create a Form and a Menu for your config model.

For polling my storage system, I inserted an entry in "ir.cron"-table. There you can specify a model (i.e. stock.picking) and a function to call periodically. Within this function you want to use your API for querying tasks.

For sending information to the storage system I inherited the "stock.picking" model, also inserted the API code and replaced the original "Apply picking" buttons in the stock forms to call my own code instead of the original one.

Sorry that I provide only some pieces of information - this was my approach to accomplish this task - I hope to get you some ideas to start with. For implementation details I recommend to learn from Odoo's own modules with the version you are working with.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Developing new module, am I using API v7 in this block of code?
module api odooV8
Avatar
Avatar
2
Feb 16
4256
Understanding the API: can I retrieve more fields while using search? Solved
module search api odooV8
Avatar
Avatar
Avatar
Avatar
6
Feb 16
8428
How do I get Product Prices with json API? Solved
api
Avatar
Avatar
1
Nov 25
2751
Has anyone integrated Helpdesk with Zoom for meeting scheduling?
api
Avatar
Avatar
1
Aug 25
1351
Using API check if Odoo is using Odoo sh or on-premises hosting. Solved
api
Avatar
Avatar
1
Aug 25
1725
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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