diff --git a/dev/odoo-server-dev-rw.conf b/dev/odoo-server-dev-rw.conf index c648544e..dd79bc61 100644 --- a/dev/odoo-server-dev-rw.conf +++ b/dev/odoo-server-dev-rw.conf @@ -8,7 +8,7 @@ db_port = 5432 db_user = False db_password = False -addons_path = ext/odoo/addons,ext/3rd-party-addons,ext/custom-addons +addons_path = ext/odoo/addons,ext/3rd-party-addons,ext/custom-addons,ext/clarico-addons ; For enterprise use the addons path bellow ; addons_path = ext/enterprise-addons,ext/odoo/addons,ext/3rd-party-addons,ext/custom-addons,dmi/run1 timezone = Europe/Vienna diff --git a/dev/pylint/setup_pylint_hook b/dev/pylint/setup_pylint_hook index 6ea70795..f77ee54d 100755 --- a/dev/pylint/setup_pylint_hook +++ b/dev/pylint/setup_pylint_hook @@ -1,21 +1,14 @@ #!/usr/bin/env bash -if ! $(python -c "import pylint" &> /dev/null); then - echo 'Pylint is not installed and is going to be installed now!' - sudo pip install pylint -else - echo 'Pylint is already installed. Continue ...' -fi - if ! $(python -c "import pylint_odoo" &> /dev/null); then echo 'The pylint module "pylint-odoo" is not installed and is going to be installed now!' - sudo pip install --upgrade git+https://github.com/oca/pylint-odoo.git + sudo pip3 install --upgrade git+https://github.com/oca/pylint-odoo.git else echo 'The pylint module "pylint-odoo" is already installed. Continue ...' fi if ! $(python -c "import git_pylint_commit_hook" &> /dev/null); then echo 'git-pylint-commit-hook is not insalled and is going to be isntalled now!' - sudo pip install git-pylint-commit-hook + sudo pip3 install git-pylint-commit-hook else echo 'git-pylint-commit-hook is already installed. Continue ...' fi diff --git a/ext/custom-addons/dp_custom/models/account.py b/ext/custom-addons/dp_custom/models/account.py index 28ea0f62..661410bf 100644 --- a/ext/custom-addons/dp_custom/models/account.py +++ b/ext/custom-addons/dp_custom/models/account.py @@ -37,7 +37,7 @@ class AccountInvoiceLine(models.Model): if vals.get('lot_id', False): vals.update(intrastat_id=self.env['stock.production.lot'].browse(vals['lot_id']).intrastat_id.id) elif vals.get('product_id', False): - vals.update(intrastat_id=self.env['product.template'].browse(vals['product_id']).intrastat_id.id) + vals.update(intrastat_id=self.env['product.product'].browse(vals['product_id']).intrastat_id.id) return super(AccountInvoiceLine, self).create(vals) @api.multi diff --git a/ext/custom-addons/dp_custom/models/stock.py b/ext/custom-addons/dp_custom/models/stock.py index ca592b69..3ca1c36e 100644 --- a/ext/custom-addons/dp_custom/models/stock.py +++ b/ext/custom-addons/dp_custom/models/stock.py @@ -36,12 +36,14 @@ class StockProductionLot(models.Model): @api.model def create(self, vals): - tools.image_resize_images(vals) + if vals.get('image'): + vals.update(tools.image_get_resized_images(vals['image'], return_big=True, return_medium=True, return_small=False)) return super(StockProductionLot, self).create(vals) @api.multi def write(self, vals): - tools.image_resize_images(vals) + if vals.get('image'): + vals.update(tools.image_get_resized_images(vals['image'], return_big=True, return_medium=True, return_small=False)) return super(StockProductionLot, self).write(vals) diff --git a/ext/custom-addons/dp_reports_sale/reports/sale.xml b/ext/custom-addons/dp_reports_sale/reports/sale.xml index 10105e2e..b6d2ee6b 100644 --- a/ext/custom-addons/dp_reports_sale/reports/sale.xml +++ b/ext/custom-addons/dp_reports_sale/reports/sale.xml @@ -110,7 +110,7 @@
-
| - | +
|