diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-10 14:34:55 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-10 14:34:55 +0700 |
| commit | 68c2e896a684e1dc68b4f01da38a444fe76bceac (patch) | |
| tree | b706fb7df382c718590ff346469fe11522333688 /indoteknik_custom/models/sale_order.py | |
| parent | 2c0bb838b406503aa6a10cc0c21d474429246e18 (diff) | |
Add voucher model, view, and api
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 1 |
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: |
