From 3b9311c52cbaf6543710dfdab12331c5574a5a02 Mon Sep 17 00:00:00 2001 From: "Nicolas (vin)" Date: Mon, 17 Aug 2020 07:46:48 +0000 Subject: [PATCH] [FIX] l10n_id_efaktur: Fix occurrences of account.move.type Since the saas-13.3 account.move.type has been renamed to account.move.move_type, but there are still two places where move.type is missused. This commit will correct one of them. task id #2320980 closes odoo/odoo#57088 X-original-commit: fb8adec848921b4a13a8c5757e67df330d56a2e5 Related: odoo/enterprise#12949 Signed-off-by: Laurent Smet Signed-off-by: Nicolas Viseur --- addons/l10n_id_efaktur/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_id_efaktur/models/account_move.py b/addons/l10n_id_efaktur/models/account_move.py index 9a9cc944a98..9639d950691 100644 --- a/addons/l10n_id_efaktur/models/account_move.py +++ b/addons/l10n_id_efaktur/models/account_move.py @@ -56,7 +56,7 @@ class AccountMove(models.Model): @api.depends('partner_id') def _compute_need_kode_transaksi(self): for move in self: - move.l10n_id_need_kode_transaksi = move.partner_id.l10n_id_pkp and not move.l10n_id_tax_number and move.type == 'out_invoice' and move.country_code == 'ID' + move.l10n_id_need_kode_transaksi = move.partner_id.l10n_id_pkp and not move.l10n_id_tax_number and move.move_type == 'out_invoice' and move.country_code == 'ID' @api.constrains('l10n_id_kode_transaksi', 'line_ids') def _constraint_kode_ppn(self):