summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas (vin) <vin@odoo.com>2020-08-17 07:46:48 +0000
committerNicolas (vin) <vin@odoo.com>2020-09-04 10:08:37 +0000
commitc81011ef8ce2c67ce49d1b9eeb46b42bbd5df3ef (patch)
treed9cee12bac617443bee471d4e03c6dcfe03aba42
parentf011c9aacf3a3010c436d4e4f408cd9ae265de1b (diff)
[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#57081 X-original-commit: fb8adec848921b4a13a8c5757e67df330d56a2e5 Related: odoo/enterprise#12943 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
-rw-r--r--addons/l10n_id_efaktur/models/account_move.py2
1 files changed, 1 insertions, 1 deletions
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):