From 5836b075a839fd261b8e89c0cb696889076ee1cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Br=C3=BCckl?= Date: Fri, 23 Feb 2018 10:01:56 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderung=20auf=20round=5Fglobally?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ext/custom-addons/dp_custom/models/account.py | 2 +- setup/lib/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/custom-addons/dp_custom/models/account.py b/ext/custom-addons/dp_custom/models/account.py index 15fae72a..7f20177f 100644 --- a/ext/custom-addons/dp_custom/models/account.py +++ b/ext/custom-addons/dp_custom/models/account.py @@ -26,7 +26,7 @@ class AccountInvoiceLine(models.Model): intrastat_id = fields.Many2one(comodel_name='report.intrastat.code', string='Intrastat Code') - @api.model + @api.one def create(self, vals): if vals.get('product_id', False) and not vals.get('intrastat_id', False): vals.update(intrastat_id=self.env['product.template'].browse(vals['product_id']).intrastat_id.id) diff --git a/setup/lib/config.py b/setup/lib/config.py index e5e4bcba..41476799 100644 --- a/setup/lib/config.py +++ b/setup/lib/config.py @@ -76,7 +76,7 @@ class Config(object): 'security_lead': 0, # Einstellungen Finanzen - 'tax_calculation_rounding_method': 'round_per_line', + 'tax_calculation_rounding_method': 'round_globally', 'vat_check_vies': True, 'group_multi_currency': True, # Multiwährungsfunktion aktivieren 'module_account_reports_followup': False,