summaryrefslogtreecommitdiff
path: root/addons/account_debit_note
diff options
context:
space:
mode:
authorKatherine Zaoral <kz@adhoc.com.ar>2020-08-18 15:46:02 +0000
committerKatherine Zaoral <kz@adhoc.com.ar>2020-08-18 19:45:25 +0000
commit7e6b3027f60aa7b3b183bdf92b751b2621225b4f (patch)
treef6132531ec3dbf89b3c9b6bd161d7e2cf3cd947f /addons/account_debit_note
parente8be4d9ee35f830fff611f4e815d320fd808733f (diff)
[IMP] account_debit_note: remove context key
internal_type context key is not used anymore, now we use the debit_origin_id field directly to know if the current document is a debit note or note.
Diffstat (limited to 'addons/account_debit_note')
-rw-r--r--addons/account_debit_note/wizard/account_debit_note.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account_debit_note/wizard/account_debit_note.py b/addons/account_debit_note/wizard/account_debit_note.py
index 3501599c60a..f3f9a42e5dc 100644
--- a/addons/account_debit_note/wizard/account_debit_note.py
+++ b/addons/account_debit_note/wizard/account_debit_note.py
@@ -65,7 +65,7 @@ class AccountDebitNote(models.TransientModel):
new_moves = self.env['account.move']
for move in self.move_ids.with_context(include_business_fields=True): #copy sale/purchase links
default_values = self._prepare_default_values(move)
- new_move = move.with_context(internal_type='debit_note').copy(default=default_values) # Context key is used for l10n_latam_invoice_document for ar/cl/pe
+ new_move = move.copy(default=default_values)
move_msg = _(
"This debit note was created from:") + " <a href=# data-oe-model=account.move data-oe-id=%d>%s</a>" % (
move.id, move.name)