-
Ventas
-
Cotizaciones
- Envio por correo
-
-
Impresión
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
version: '2' | |
services: | |
db: | |
image: postgres:9.4 | |
restart: always | |
environment: | |
- POSTGRES_USER=odoo | |
- POSTGRES_PASSWORD=odoo | |
odoo: | |
image: odoo:11 |
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
#!/bin/bash | |
usage() | |
{ | |
cat << EOF | |
usage: $0 options | |
This script set ownership for all table, sequence and views for a given database | |
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto |
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
cd ~ | |
yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 openssl git-core fontconfig | |
wget https://downloads.wkhtmltopdf.org/0.12/0.12.1/wkhtmltox-0.12.1_linux-generic-amd64.tar.xz | |
tar xvf wkhtmltox-0.12.1_linux-generic-amd64.tar.xz | |
mv wkhtmltox/bin/wkhtmlto* /usr/bin | |
# Thanks to | |
# https://jaimegris.wordpress.com/2015/03/04/how-to-install-wkhtmltopdf-in-centos-7-0/ | |
# https://gist.github.com/Rajeshr34/2e9b2438ff142e51c729b4b9b772680a |
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
python odoo-bin scaffold pycaribbean /Users/eneldoserrata/Documents/PycharmProjects/marcos/marcos_odoo11/presentations | |
class Pycaribbean(models.Model): | |
_name = 'pycaribbean' | |
_rec_name = 'name' | |
_description = 'New Description' | |
name = fields.Char("Name") | |
speaker_id = fields.Many2one("speaker") | |
age = fields.Integer("Age") |
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 Binary(http.Controller): | |
@http.route('/web/binary/download_document', type='http', auth="public") | |
@serialize_exception | |
def download_document(self, model, field, id, filename=None, **kw): | |
""" Download link for files stored as binary fields. | |
:param str model: name of the model to fetch the binary from | |
:param str field: binary field | |
:param str id: id of the record from which to fetch the binary | |
:param str filename: field holding the file's name, if any |
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 Binary(http.Controller): | |
@http.route('/web/binary/download_document', type='http', auth="public") | |
@serialize_exception | |
def download_document(self, model, field, id, filename=None, **kw): | |
""" Download link for files stored as binary fields. | |
:param str model: name of the model to fetch the binary from | |
:param str field: binary field | |
:param str id: id of the record from which to fetch the binary | |
:param str filename: field holding the file's name, if any |
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
Hi. | |
Here is the content of my nginx config file : | |
location /analytics { | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Script-Name /analytics; | |
proxy_pass http://YOUR_SERVER_NAME:8088; | |
#YOUR_SERVER_NAME is localhost if both nginx and superset run on same server |
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
#Install wkhtmltopdf | |
cd /usr/local/src | |
wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
ln -s -f /usr/local/src/wkhtmltox/bin/wkhtmlto* /usr/bin/ | |
cd ~ | |
chown -R $OE_USER: /usr/local/src/wkhtmltox | |
chown -R $OE_USER: /usr/bin/ |
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
#Install wkhtmltopdf | |
cd /usr/local/src | |
wget https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
ln -s -f /usr/local/src/wkhtmltox/bin/wkhtmlto* /usr/bin/ | |
cd ~ | |
chown -R $OE_USER: /usr/local/src/wkhtmltox | |
chown -R $OE_USER: /usr/bin/ |
NewerOlder