summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/sale_order.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-11-09 09:55:34 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-11-09 09:55:34 +0700
commit14156f7d6f55eaa4e74310ee1aa4e5128aa17fff (patch)
tree8120cf7da795977f9602cc80b52a795673b83d35 /indoteknik_custom/models/sale_order.py
parentc9a54676b0ba5b1e27e3619cd0443031bdd27fda (diff)
mandatory static npwp,sppkp,customer_type in sale order and fix log note journal entries
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
-rwxr-xr-xindoteknik_custom/models/sale_order.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index dbc4e863..f9229bca 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -70,9 +70,9 @@ class SaleOrder(models.Model):
customer_type = fields.Selection([
('pkp', 'PKP'),
('nonpkp', 'Non PKP')
- ])
- sppkp = fields.Char(string="SPPKP")
- npwp = fields.Char(string="NPWP")
+ ], required=True)
+ sppkp = fields.Char(string="SPPKP", required=True)
+ npwp = fields.Char(string="NPWP", required=True)
purchase_total = fields.Monetary(string='Purchase Total', compute='_compute_purchase_total')
voucher_id = fields.Many2one(comodel_name='voucher', string='Voucher', copy=False)
applied_voucher_id = fields.Many2one(comodel_name='voucher', string='Applied Voucher', copy=False)