This file contains hidden or 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
upstream odoo9_xmlrpc { | |
server <xmlrpc address>; | |
} | |
upstream odoo9_longpolling { | |
server <longpolling address>; | |
} | |
server { | |
listen 80; |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
from openerp import fields, models | |
class {{ CLASS NAME }}(models.Model): | |
_inherit = '{{ INHERITED MODEL }}' | |
def {{ ACTION NAME }}(self, cr, uid, ids, context=None): | |
''' | |
{{ DESCRIPTION }} | |
''' |
This file contains hidden or 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
#!/usr/bin/env python | |
from gimpfu import * | |
def retrosun(img, layer, gradient): | |
gimp.progress_init("Rendering RetroSun to " + layer.name + "...") | |
# Set up an undo group, so the operation will be undone in one step. | |
pdb.gimp_undo_push_group_start(img) |