SQL Constraints are not running in Odoo 11

I have the following model myModel: # -*- coding: utf-8 -*- from odoo import models, fields, api class myModel(models.Model): _name = ‘myproject.myModel’ name= fields.Char(‘Name’, size=9, required=True) start = fields.Datetime(‘Start date’,required=True) end= fields.Datetime(‘End date’,required=True) _sql_constraints = [(‘date_constraint’, ‘CHECK((end > start))’, ‘End date must be later than start date’)] The problem is that the sql constraints are…

Details

Error pushing logs to elasticsearch using kafka as input for logstash

Below is my logstash config file logstash.conf. Lotstash reads logs from Kafka topic ‘my_topic’ and outputs it to elasticsearch index ‘es-index’. input { kafka { bootstrap_servers =>”kafka1.xxx:9092,kafka2.xxx:9092,kafka3.xxx:9092″ topics => [“my_topic”] codec => “json” group_id => “logstashgroup” } } output { elasticsearch { hosts => [“es1.myhost:9200″,”es2.myhost:9200″,”es3.myhost:9200”] user => “user123” password => “password” index => “es-index” }…

Details