summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_order.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-02-10 11:04:07 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-02-10 11:04:07 +0700
commit337e769c7eab63275b4114f48e789bdcf808bdf1 (patch)
tree24f09636ecd83abcc22f53295c905d637801b437 /indoteknik_custom/models/purchase_order.py
parentbbf176b0ce51ade22b74d0df2023025a4cef3efa (diff)
add line no in so / po and stock picking
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
-rwxr-xr-xindoteknik_custom/models/purchase_order.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py
index b4d671b6..2f3d2ec4 100755
--- a/indoteknik_custom/models/purchase_order.py
+++ b/indoteknik_custom/models/purchase_order.py
@@ -169,6 +169,8 @@ class PurchaseOrder(models.Model):
self.approval_status = 'approved'
self.po_status = 'menunggu'
+ self.calculate_line_no()
+
return res
def po_approve(self):