summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/sale_order.py
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-07-13 11:31:29 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-07-13 11:31:29 +0700
commitb496b7907c60d8b262ddba42e55dd8485f718fce (patch)
treee0c9fd67a600224f0d4279a1b8d3d20de2ec6254 /indoteknik_custom/models/sale_order.py
parent5aa6e8f5ed1bd628a5f4559a3f752b6e83ee2c49 (diff)
parent5d101afe46c1c1bce87ec2f7e8f18d040bbbc7d3 (diff)
Merge branch 'feature/voucher' into development
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
-rwxr-xr-xindoteknik_custom/models/sale_order.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index 5a3cada9..e54b9ae2 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -86,6 +86,7 @@ class SaleOrder(models.Model):
sppkp = fields.Char(string="SPPKP")
npwp = fields.Char(string="NPWP")
purchase_total = fields.Monetary(string='Purchase Total', compute='_compute_purchase_total')
+ voucher_id = fields.Many2one(comodel_name='voucher', string='Voucher')
def _compute_purchase_total(self):
for order in self: