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 odoo import fields, models, api | |
#from . import leiauteNFe as nfe | |
from spec_models import StackedModel | |
#from odoo.addons.l10n_br_nfe.models.v3_10 import leiauteNFe | |
# overriden to deal with conditional visibility and | |
# forcing to stack some optional taxes for usability consistency |
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 odoo import fields, models, api | |
#from . import leiauteNFe as nfe | |
from spec_models import StackedModel | |
#from odoo.addons.l10n_br_nfe.models.v3_10 import leiauteNFe | |
# overriden to deal with conditional visibility and | |
# forcing to stack some optional taxes for usability consistency |
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
ODOO+DOCKY INSTALATION ON UBUNTU 18.04 LTS BIONIC | |
# SSH as root | |
apt-get update | |
# Add erp user: | |
adduser erp | |
sudo visudo | |
# add this line ( see https://phpraxis.wordpress.com/2016/09/27/enable-sudo-without-password-in-ubuntudebian/ ) | |
erp ALL=(ALL) NOPASSWD:ALL |
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
# If we receive X-Forwarded-Proto, pass it through; otherwise, pass along the | |
# scheme used to connect to this server | |
map $http_x_forwarded_proto $proxy_x_forwarded_proto { | |
default $http_x_forwarded_proto; | |
'' $scheme; | |
} | |
# If we receive X-Forwarded-Port, pass it through; otherwise, pass along the | |
# server |
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
/* after running OpenUpgrade to upgrade to a newer Odoo version, when you start Odoo, | |
you typically have warning logs about modules not found. | |
You may uninstall them with a command such as | |
update ir_module_module set state='uninstalled' where name IN (...); | |
and then clean the databases of the problematic records of these modules with the following scripts: | |
*/ | |
/* disable view and menus of uninstalled modules: */ | |
delete from ir_ui_view where id in (select ir_model_data.res_id from ir_model_data join ir_module_module on ir_module_module.name = ir_model_data.module where model='ir.ui.view' and state='uninstalled'); | |
delete from ir_ui_menu where id in (select ir_model_data.res_id from ir_model_data join ir_module_module on ir_module_module.name = ir_model_data.module where model='ir.ui.menu' and state='uninstalled'); |
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
cd tests | |
find . -type f -print0 | xargs -0 sed -i '/Python 2.7.14/c\# Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0]' | |
find . -type f -print0 | xargs -0 sed -i 's/ascii/utf-8/g' | |
python test.py # (can be python2 or python3) |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- edited with XMLSpy v2008 (http://www.altova.com) by [email protected] (PROCERGS) --> | |
<!-- PL_009 alterações de esquema decorrentes da - NT2016.002 v1.20 - 31/05/2017 13:14hs--> | |
<!-- PL_008g alterações de esquema decorrentes da - NT2015.002 - 15/07/2015 --> | |
<!-- PL_008h alterações de esquema decorrentes da - NT2015.003 - 17/09/2015 --> | |
<!-- PL_008i --> | |
<!-- PL_009-v4 alterações de esquema decorrentes da - NT2016.002 - 10/2017 --> | |
<!-- PL_009-v4a alterações de esquema decorrentes da - NT2017.001 - 10/2017 --> | |
<!-- PL_009-v4a alterações de esquema decorrentes da - NT2016.002 v1.60 - 06/2018 --> | |
<!-- PL_009-v4a.1 correções de esquema decorrentes da - NT2016.002 v1.60 - 06/2018 --> |
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 -*- | |
# | |
# Generated Fri Mar 1 04:51:31 2019 by generateDS.py(Akretion's branch). | |
# Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] | |
# | |
import textwrap | |
from odoo import fields | |
from .. import spec_models |
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 odoo import fields, models, api | |
from .spec_models import SpecModel, StackedModel | |
import inspect | |
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 bash | |
# Copyright (C) 2018 - TODAY Raphael Valyi - Akretion | |
# MIT-LICENSE | |
set -eo pipefail | |
SCHEMA_NAME=$1 | |
PLUGIN=$2 | |
VERSION=$3 | |
ZIP_URL=$4 | |
FILE_FILTER=$5 |