This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 ## | |
## ## |