- The admin user must have Technicals rights to update list modules al Configuration Menu
- To work the fist login of admin, he have set the password. By default admin not have password
- Import examples: http://openerp.zikzakmedia.com/Importaci%C3%B3nExportaci%C3%B3nOpenERP
- CSV Products importation:
- Basic columns: Name, Internal Reference (Code), Optionall but usefull Customer Taxes , Supplier Taxes
- Update/Correct translations at GUI, also load custom module translations: Configuration > Load Translation > Language : Select the right and 'Load'
- Custom reports in my module: *"Sí, lo exportas a RML y en tu módulo creas un arhivo xml que contenga una entrada report que sobre escriba la que está en el archivo: addons/purchase/purchase_report.xml el que se refiere a order.rml
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
# -*- coding: utf-8 -*- | |
""" | |
@file : gen_emails.py | |
@author : Milton Labanda | |
@date : 24-04-2014 | |
@description: : Un Generador de nombres de usuario para emails a partir de nombres y apellidos | |
""" | |
import itertools | |
import unicodedata |
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
import decimal | |
from decimal import Decimal | |
import datetime | |
#Read from Microsoft Access | |
#rows = cursor_access.execute("SELECT * FROM Predios") | |
#One record example: | |
row = (98, '11', '04', '57', '01', '01', '004', '005', '000', '00', '000', '1104570101004005', 'EDIFICADO', 'TNTE MAXIMILIANO RODRIGUEZ', 'UNIPROPIEDAD', 'Residencial', 'C:\\FOTOS\\570101\\004\\005.jpg', 'MODESTO BURNEO', 'S/N', 'JACINTA REYES', 'LOJA, SAN SEBASTIAN', 'Natural', None, datetime.datetime(1973, 1, 26, 0, 0), 44, 'Femenino', False, 'CARMEN PAULINA', 'ILLESCAS BURNEO', 'Cédula', '1102962741', '-', '-', 'Casado', 'MANUEL AGUSTIN', 'TOLEDO CUEVA', 'Cédula', '-', '-', '-', 'BURNEO CAMPOVERDE JULIO MARIANA', '-', None, None, None, None, None, None, None, 'Cédula', None, None, None, False, True, 'Loja', 'Celica', '3', datetime.datetime(2011, 10, 7, 0, 0), '254', datetime.datetime(2011, 10, 31, 0, 0), False, 0, 0, 'Compra - venta', True, 'Calle', 'Adoquín de cemento', True, True, True, True, False, True, True, True, False, True, False, False, |
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
# List branches for remote repositorie | |
git ls-remote --heads https://github.com/jquemada/cal_branches |
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
import urllib.request | |
import json | |
def analisa_detalhe(cod): | |
url = 'http://educacao.dadosabertosbr.com/api/escola/' | |
resp = urllib.request.urlopen(url+str(cod)).read() | |
resp = json.loads(resp.decode('utf-8')) | |
if int(resp['salasExistentes']) > 1: | |
print ('Salas Existentes:', resp['salasExistentes']) | |
print ('Funcionários:', resp['funcionarios']) |
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
from numpy import array | |
a = array([[5.1, 7.4, 3.2, 9.9], | |
[1.9, 6.8, 4.1, 2.3], | |
[2.9, 6.4, 4.3, 1.4]]) | |
#cantidad de elemtos | |
a.size | |
#dimensiones | |
a.shape | |
#Lectura: Obtener un elemento contenido en la matriz | |
a[1, 3] |
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
edades = numpy.array[(20,23,22)] | |
#lectura | |
print (edades[2]) | |
#escritura | |
edades[1] = 27 | |
#presentacion | |
for i in range(0, len(edades)): | |
print (edades[i]) | |
#aunque en python no hace falta el bucle | |
print(edades) |
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
import numpy | |
#creacion e inicializacion | |
a = numpy.array([2,4,5,9]) | |
#creacion | |
b = numpy.array() | |
#inicializacion, por defecto el tipo de dato usado es float | |
b = numpy.empty(4) | |
#Mas formas de inicializacion | |
dias = numpy.empty(7) | |
edades = numpy.empty(20, dtype=int) |
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
#!/usr/bin/env python | |
""" | |
===================================== | |
PEP 20 (The Zen of Python) by example | |
===================================== | |
Usage: %prog | |
:Author: Hunter Blanks, hblanks@artifex.org / hblanks@monetate.com |
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
echo "" > /tmp/bads.txt | |
inicio=164 | |
fin=165 | |
for i in `seq $inicio $fin` | |
do | |
ip=10.10.$i.1 | |
if ping $ip -w2 | grep "0 received" | |
then | |
echo $ip >> /tmp/bads.txt | |
fi |
NewerOlder