summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-10-26 11:56:16 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-10-26 11:56:16 +0700
commit0037ab8019daad5c1cfccd0007284c54b5c22253 (patch)
treeace14e2743636a6dccb7b21db3ec0fd2db568895 /indoteknik_custom/models
parentcdd2e38987e4db045809b5af65fc12c16cf20186 (diff)
add indent tab in purchase order
Diffstat (limited to 'indoteknik_custom/models')
-rwxr-xr-xindoteknik_custom/models/purchase_order.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py
index d62d7b1e..f9cd7f5b 100755
--- a/indoteknik_custom/models/purchase_order.py
+++ b/indoteknik_custom/models/purchase_order.py
@@ -48,6 +48,7 @@ class PurchaseOrder(models.Model):
note_description = fields.Char(string='Note', help='bisa diisi sebagai informasi indent barang tertentu atau apapun')
has_active_invoice = fields.Boolean(string='Has Active Invoice', compute='_compute_has_active_invoice')
description = fields.Char(string='Description', help='bisa diisi sebagai informasi indent barang tertentu atau apapun')
+ purchase_order_lines = fields.One2many('purchase.order.line', 'order_id', string='Indent', auto_join=True)
def _compute_has_active_invoice(self):
for order in self: