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
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} |
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
# 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 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
# 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 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
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 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
create or replace view ppl_ubicacion as | |
select | |
prison_person.id, prison_person.name as ppl_name, prison_person.last_name, prison_person.location_id, | |
prison_location.name, (select prison_location.name FROM prison_location WHERE id=prison_person.etapa_id) as etapa_name, | |
(SELECT prison_location.name FROM prison_location WHERE id=prison_person.pabellon_id) as pabellon_name, | |
prison_person.etapa_id, prison_person.pabellon_id | |
from | |
prison_person | |
join | |
prison_location |
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
| 524137 | problem | block-v1:mineduc-forma+LMN101+2015_07+type@problem+block@e9d02abbc79246709ec83458db95c193 | 35546 | {"correct_map": {"e9d02abbc79246709ec83458db95c193_7_1": {"hint": "", "hintmode": null, "correctness": "correct", "msg": "", "npoints": null, "queuestate": null}, "e9d02abbc79246709ec83458db95c193_4_1": {"hint": "", "hintmode": null, "correctness": "incorrect", "msg": "", "npoints": null, "queuestate": null}, "e9d02abbc79246709ec83458db95c193_13_1": {"hint": "", "hintmode": null, "correctness": "incorrect", "msg": "", "npoints": null, "queuestate": null}, "e9d02abbc79246709ec83458db95c193_8_1": {"hint": "", "hintmode": null, "correctness": "incorrect", "msg": "", "npoints": null, "queuestate": null}, "e9d02abbc79246709ec83458db95c193_9_1": {"hint": "", "hintmode": null, "correctness": "correct", "msg": "", "npoints": null, "queuestate": null}, "e9d02abbc79246709ec83458db95c193_6_1": {"hint": "", "hintmode": null, "correctness": "incorrect", "msg": "", "npoints": null, "queuestate": |
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
"section_breakdown": [ | |
{ | |
"category": "Prueba 1\u00b0", | |
"prominent": true, "percent": 0, | |
"detail": "Prueba 1\u00b0 = 0%", | |
"label": "PRB1" | |
}, | |
{ | |
"category": "Prueba 2\u00b0", |
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
__author__ = 'name1984' | |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import MySQLdb | |
import json | |
import csv | |
import sys |
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
<record model="ir.ui.view" id="view_employee_modified_form"> | |
<field name="name">hr.employee.modified.form</field> | |
<field name="model">hr.employee</field> | |
<field name="type">form</field> | |
<field name="inherit_id" ref="hr.view_employee_form"/> | |
<field name="arch" type="xml"> | |
<field name="company_id" position="replace"> | |
<field name="company_id" invisible="1"/> | |
<field name="work_email" widget="email" colspan="3"/> | |
</field> |
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
nohup python openerp-server --addons-path=../addons/,../web6.1/addons & |
OlderNewer