summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/account_move.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-06-24 11:23:36 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-06-24 11:23:45 +0700
commit6a913c0025c64903536fa6c9aeda526b609d27e6 (patch)
treea79437756e52c8a3cdf4ff74d6a14aba11026eaa /indoteknik_custom/models/account_move.py
parentb6ec1d3c1b12a637d7c4ec9c6818167e77d3d3cc (diff)
change request coretax down payment
Diffstat (limited to 'indoteknik_custom/models/account_move.py')
-rw-r--r--indoteknik_custom/models/account_move.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 66020a69..ece47236 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -70,6 +70,7 @@ class AccountMove(models.Model):
reklas_misc_id = fields.Many2one('account.move', string='Journal Entries Reklas')
# Di model account.move
bill_id = fields.Many2one('account.move', string='Vendor Bill', domain=[('move_type', '=', 'in_invoice')], help='Bill asal dari proses reklas ini')
+ down_payment = fields.Boolean('Down Payments?')
# def name_get(self):
@@ -441,7 +442,7 @@ class AccountMove(models.Model):
# Panggil model coretax.faktur untuk menghasilkan XML
coretax_faktur = self.env['coretax.faktur'].create({})
- response = coretax_faktur.export_to_download(invoices=valid_invoices)
+ response = coretax_faktur.export_to_download(invoices=valid_invoices, down_payments=valid_invoices.down_payment)
current_time = datetime.utcnow()
# Tandai faktur sebagai sudah diekspor