Skip to content

Instantly share code, notes, and snippets.

View ovnicraft's full-sized avatar
🎯
Focusing

Christian Salamea ovnicraft

🎯
Focusing
View GitHub Profile
UPDATE ppl_ubicacion
SET pabellon_name='PABELLON A2',ala_name='ALA 2', piso_name='A2'
WHERE nombre_centro= 'CDP GUAYAQUIL' and pabellon_name='PABELLON A1'and id_celda>=2826;
select *
from ppl_ubicacion
where nombre_centro= 'CDP GUAYAQUIL'
and pabellon_name='PABELLON A1'
and id_celda>=2826
order by pabellon_name;
# This script is for devstack
INTERACTIVE=true
while getopts "y" opt; do
case "$opt" in
y)
INTERACTIVE=false
esac
done
if [ "$INTERACTIVE" = true ] ; then
# This script is for devstack
INTERACTIVE=true
while getopts "y" opt; do
case "$opt" in
y)
INTERACTIVE=false
esac
done
if [ "$INTERACTIVE" = true ] ; then
class AccountInvoiceLine(osv.osv):
_inherit = 'account.invoice.line'
def _amount_line(self, cr, uid, ids, prop, unknow_none, unknow_dict):
res = {}
tax_obj = self.pool.get('account.tax')
cur_obj = self.pool.get('res.currency')
company_currency = self.pool['res.company'].browse(cr, uid, obj.company_id.id).currency_id.id
for line in self.browse(cr, uid, ids):
res[obj.id] = {'amount_tax': 0, 'price_subtotal': 0}

Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.

Now look up. Further. Above the post title. See that grey text with the gist ID?

Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse.

This is a major heading

If you peek at it with a web inspector, you'll see that it is a second-level heading. You can use first level headings, but they'll look just like the second level ones, and the gods of the HTML5 outlining algorithm will frown upon you.

@ovnicraft
ovnicraft / gist:4740432
Last active December 12, 2015 07:58 — forked from anonymous/gist:4740427
nohup python openerp-server --addons-path=../addons/,../web6.1/addons &