summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/account_move.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models/account_move.py')
-rw-r--r--indoteknik_custom/models/account_move.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 47eb90f8..ae09d0ee 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -44,10 +44,12 @@ class AccountMove(models.Model):
'name': '-',
}])
for move in self:
+ sale_id = move.sale_id.id
self.env['invoice.reklas.penjualan.line'].create([{
'invoice_reklas_id': invoice.id,
'name': move.name,
'partner_id': move.partner_id.id,
+ 'sale_id': move.sale_id.id,
'amount_untaxed_signed': move.amount_untaxed_signed,
'amount_total_signed': move.amount_total_signed,
}])