Skip to content

Instantly share code, notes, and snippets.

View kirca's full-sized avatar

Kiril Vangelovski kirca

  • Skopje, Macedonia
View GitHub Profile
#!/bin/bash
##################################################################################
## ##
## To run this script by command line in background issue this command ##
## ./monitoring-odoo-postgresql-lock > /dev/null 2>&1 & ##
## To kill this script if running issue this command ##
## pkill -f monitoring-odoo-postgresql-lock ##
## To add this script to crontab: ##
## @reboot /path/to/monitoring-odoo-postgresql-lock > /dev/null 2>&1 || true ##
## ##
@danmana
danmana / example_model.py
Created August 16, 2021 15:08
Add support for custom json fields in Odoo
from odoo import models, fields, api
from json_field import JsonField
class Person(models.Model):
_name = 'example.person'
_description = 'Person with json details'
details = JsonField() # a json object represented as dict / list / python primitives