summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/invoice_reklas.py
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-19 16:59:09 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-19 16:59:09 +0700
commit3be1e1707547d40f618f70bd18e54519842e95a1 (patch)
tree0856fe9da7070c766150c19565c5e85d5e84bfb9 /indoteknik_custom/models/invoice_reklas.py
parent1beabdd925218c888ad1b3b684a8eab020316a2e (diff)
(andri) fix value PO pada CAB dan Vendor Bill pada MISC
Diffstat (limited to 'indoteknik_custom/models/invoice_reklas.py')
-rw-r--r--indoteknik_custom/models/invoice_reklas.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/indoteknik_custom/models/invoice_reklas.py b/indoteknik_custom/models/invoice_reklas.py
index 5145e098..58299d3e 100644
--- a/indoteknik_custom/models/invoice_reklas.py
+++ b/indoteknik_custom/models/invoice_reklas.py
@@ -102,6 +102,9 @@ class InvoiceReklas(models.TransientModel):
'journal_id': 13
}
+ if invoice.purchase_order_id:
+ parameters_header['purchase_order_id'] = invoice.purchase_order_id.id
+
account_move = request.env['account.move'].create([parameters_header])
_logger.info('Success Reklas with %s' % account_move.name)