Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Odoo 14 - Integration of storage positioning lift

Subscriure's

Get notified when there's activity on this post

This question has been flagged
moduleapistorage
2898 Vistes
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
Descartar
Mostafa Barmshory

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

Torsten
Autor

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!

Registrar-se
Related Posts Respostes Vistes Activitat
Developing new module, am I using API v7 in this block of code?
module api odooV8
Avatar
Avatar
2
de febr. 16
4286
Understanding the API: can I retrieve more fields while using search? Solved
module search api odooV8
Avatar
Avatar
Avatar
Avatar
6
de febr. 16
8452
How do I get Product Prices with json API? Solved
api
Avatar
Avatar
1
de nov. 25
2809
Has anyone integrated Helpdesk with Zoom for meeting scheduling?
api
Avatar
Avatar
1
d’ag. 25
1372
Using API check if Odoo is using Odoo sh or on-premises hosting. Solved
api
Avatar
Avatar
1
d’ag. 25
1745
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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