Skip to Content
Menu

RabbitMQ integration

by
Odoo

5.85

v 16.0 Third Party 3
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies
Lines of code 1033
Technical Name ndev_workflow_rabbitmq
LicenseLGPL-3
Websitehttps://ndev.online
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies
Lines of code 1033
Technical Name ndev_workflow_rabbitmq
LicenseLGPL-3
Websitehttps://ndev.online

Configure RabbitMQ server

Configure RabbitMQ listener and RUN

Apply some code with input:

  • body - message body decoded respectly to properties "content-type" and "content_encoding"
  • properties - channel properties as content_type, content_encoding, priority, correlation_id, reply_to, expiration, message_id, timestamp, type, user_id, app_id, cluster_id
  • env - environment object
  • logger - for logging

logger.info(body)
if body.get('Data') and len(body.get('Data'))>0:
  for r in body.get('Data'):
    p=env['product.product'].search([('default_code','=',r['sku'])])
    if not p:
      env['product.product'].create({
          'name':r['name'],
          'default_code':r['sku'],
          'type':'product',
        })
Create or update Leads, Products, Partners, Orders etc.

Feel excited

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.