Skip to content

Instantly share code, notes, and snippets.

View odony's full-sized avatar

Olivier Dony odony

View GitHub Profile
# Requires a local Odoo 9 server that is only listening to 127.0.0.1
# interface on port 8069, with website/ecommerce installed, and
# a proper --db-filter setting. --proxy-mode recommended too.
# This is an *untested* sample nginx configuration for demo purpose,
# please double-check all the settings and test the actual security
# of your setup - don't take it for granted.
# It is likely to break some built-in features of Odoo as well,
# might require whitelisting some extra routes.
@odony
odony / odoo_min_avg.sh
Created February 13, 2015 17:13
Sample Munin plugin for min/avg Odoo 8.0 RPC calls
#!/bin/sh
#%# family=manual
#%# capabilities=autoconf suggest
case $1 in
config)
echo graph_category openerp
echo graph_title openerp rpc requests min/average response time
echo graph_vlabel seconds
echo graph_args --units-exponent -3
echo min.label min
@odony
odony / 8c3d71ccb88950ecc5741c76e7217e478e2f2988_partial.patch
Created February 12, 2015 11:47
partial patch for context propagation on tree_but_open actions in 8.0
diff --git a/addons/web/static/src/js/view_tree.js b/addons/web/static/src/js/view_tree.js
index 2f92042..380f160 100644
--- a/addons/web/static/src/js/view_tree.js
+++ b/addons/web/static/src/js/view_tree.js
@@ -222,27 +222,25 @@ instance.web.TreeView = instance.web.View.extend(/** @lends instance.web.TreeVie
var local_context = {
active_model: self.dataset.model,
active_id: id,
- active_ids: [id]};
+ active_ids: [id]
@odony
odony / .fonts.conf
Last active May 10, 2021 07:54 — forked from silv3rm00n/.fonts.conf
Updated version of the fonts.conf file mentioned in http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/ in order to get rid of most of the fontconfig warnings (mostly the "Having multiple values in <test> isn't supported and may not work as expected")
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'