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
--- generateDS-2.36.2.py 2020-09-24 23:28:32.078256200 -0300 | |
+++ /usr/local/bin/generateDS.py 2020-09-24 23:31:04.373630855 -0300 | |
@@ -1103,7 +1103,7 @@ | |
if self.isMixed(): | |
return True | |
base = self.getBase() | |
- if base and base in ElementDict: | |
+ if base and base in ElementDict and str(base) != self.type: | |
parent = ElementDict[base] | |
return parent.hasMixedInChain() |
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
import logging | |
import odoo | |
from odoo import http | |
from odoo.tools import config | |
_logger = logging.getLogger(__name__) | |
# similar to odoo.http.db_monodb but forcing the PRODUCTION_DB database | |
# in case there are several databases and request (like portal/website) |
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
diff --git a/account_usability/account.py b/account_usability/account.py | |
index cb322ad..3d51cf8 100644 | |
--- a/account_usability/account.py | |
+++ b/account_usability/account.py | |
@@ -676,15 +676,23 @@ class AccountReconciliation(models.AbstractModel): | |
return str_domain | |
@api.model | |
- def _domain_move_lines_for_reconciliation( | |
+ def _domain_move_lines_for_reconciliation_FIXME( # FIXME |
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
from odoo import api, fields, models | |
from odoo.tools import float_compare | |
class SaleOrderLine(models.Model): | |
_inherit = 'sale.order.line' | |
# here we let subcontracted services create purchase orders via | |
# the subcontracted_service module inside the same | |
# procurement group | |
# ver https://github.com/OCA/purchase-workflow/blob/12.0/subcontracted_service/tests/test_subcontracted_service.py#L49 |
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
dropdb homologação2 | |
createdb homologação2 -T homologação | |
dropdb homologação | |
createdb homologação -T db | |
rm -rf /data/odoo/filestore/homologação2 | |
mv /data/odoo/filestore/homologação /data/odoo/filestore/homologação2 | |
cp -r /data/odoo/filestore/db /data/odoo/filestore/homologação |
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
# install on Ubuntu Server 18.04.3 LTS | |
byobu | |
# install Docker https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
sudo apt-get update | |
sudo apt-get install -y\ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ |
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 |
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
# -*- 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
<?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 --> |