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,