[FIX] l10n_eu_service: default tax

The field `account_id` has been removed from the tax, it is not on the
repartition line.

opw-2121720

closes odoo/odoo#40370

X-original-commit: 537dd88aced8b181f921e0daa0bf146fee9366cb
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Nicolas Martinelli
2019-11-15 16:43:23 +00:00
committed by fw-bot
parent 92aeaa47ff
commit 9d6cc44f98
+1 -1
View File
@@ -31,7 +31,7 @@ class l10n_eu_service(models.TransientModel):
user = self.env.user
return self.env['account.tax'].search(
[('company_id', '=', user.company_id.id), ('type_tax_use', '=', 'sale'),
('amount_type', '=', 'percent'), ('account_id', '!=', False)], limit=1, order='amount desc')
('amount_type', '=', 'percent')], limit=1, order='amount desc')
def _default_done_country_ids(self):
user = self.env.user