Skip to content

Instantly share code, notes, and snippets.

View bwrsandman's full-sized avatar

Sandy bwrsandman

  • Montreal
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bwrsandman on github.
  • I am bwrsandman (https://keybase.io/bwrsandman) on keybase.
  • I have a public key whose fingerprint is C3C2 5B39 3568 109B 5B23 5ED3 A619 A81D B067 F56A

To claim this, I am signing this object:

@bwrsandman
bwrsandman / to_dev_logo.py
Created January 14, 2015 17:21
to_dev logo stamping for odoo
"""Using PIL add 'DEV' to the company (and the main odoo) logo
This is meant to be run as a script in the upgrade.py script of anybox.recipe.odoo
"""
from base64 import b64encode, b64decode
from cStringIO import StringIO
from PIL import Image, ImageDraw
main_partner = session.registry('ir.model.data').get_object(
session.cr, session.uid, 'base', 'main_partner')
if main_partner.image:
@bwrsandman
bwrsandman / Dockerfile
Last active October 4, 2022 17:02
Odoo 8.0 docker using pip
FROM ubuntu:14.04
# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Install dependencies
RUN apt-get install -y python-dev python-pip python-lxml python-ldap \
@bwrsandman
bwrsandman / openerp.dtd
Last active January 4, 2016 21:09
View dtd for OpenERP 7.0
<!DOCTYPE openerp [
<!ELEMENT openerp (data+)>
<!ELEMENT data (menuitem|record|delete|wizard|act_window|url|assert|report|workflow|function|ir_set)*>
<!ATTLIST data noupdate CDATA #IMPLIED>
<!ATTLIST data context CDATA #IMPLIED>
<!ELEMENT menuitem EMPTY>
<!ATTLIST menuitem id CDATA #REQUIRED>
<!ATTLIST menuitem name CDATA #IMPLIED>
@bwrsandman
bwrsandman / checkout-flake8.sh
Last active January 2, 2016 02:59
Performs bzr branch and checks containing python scripts with fake8
#!/usr/bin/bash
# Check if flake8 and bzr exists
which flake8 > /dev/null || exit 1
which bzr > /dev/null || exit 1
# Check that only one parametter was sent
if [ "$#" -lt "1" ] || [ "$#" -gt "2" ]
then
echo "Usage:"
echo "$0 lp:repository [SUBDIRECTORY]"
@bwrsandman
bwrsandman / server_sentry.patch
Last active January 1, 2016 08:19
Raven Sentry patch to OpenERP 7.0 Server
=== added file 'openerp/bzr_client.py'
--- openerp/bzr_client.py 1970-01-01 00:00:00 +0000
+++ openerp/bzr_client.py 2013-12-26 19:03:41 +0000
@@ -0,0 +1,65 @@
+# -*- encoding: utf-8 -*-
+###############################################################################
+#
+# OpenERP, Open Source Management Solution
+# This module copyright (C) 2013 Savoir-faire Linux
+# (<http://www.savoirfairelinux.com>).
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# Maintainer : Martin Wimpress <[email protected]>
# Contributor: Joris Steyn <[email protected]>
# Contributor: kens
pkgname=finalterm-git
pkgver=0.r120.728072f
pkgrel=1
pkgdesc="A new breed of terminal emulator"
arch=('x86_64' 'i686')
url="http://finalterm.org"
# Maintainer: Miguel Useche <[email protected]>
# Contributor: Anton Leontiev <unsector /at/ km.ru>
pkgname=guake-git
pkgver=0.4.4.13.gdc71f60
pkgrel=1
pkgdesc="Top-down terminal for Gnome"
arch=('i686' 'x86_64')
url="http://guake.org/"
license=('GPL')
Index: ../../../Private/code/openerp/fruigor/bzr/pallet-delivery/purchase_lot_tracking/account.py
===================================================================
--- ../../../Private/code/openerp/fruigor/bzr/pallet-delivery/purchase_lot_tracking/account.py (revision )
+++ ../../../Private/code/openerp/fruigor/bzr/pallet-delivery/purchase_lot_tracking/account.py (revision )
@@ -52,17 +52,18 @@
def _estimated_tcu(self, cr, uid, ids, name, arg, context=None):
res = {}
-
for line in self.browse(cr, uid, ids):