diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-01-20 16:03:00 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-01-20 16:03:00 +0700 |
| commit | d406e0cc949f8f35631d872993850f3ccec0821d (patch) | |
| tree | a40b3be7ca2d186dc35a5e4543586b0f1a387db4 | |
| parent | 717719226f60f6a7c5e89e8db18eb22a62b3391a (diff) | |
add other taxes in account move
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index d62f19ae..85ed1d54 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -63,6 +63,11 @@ class AccountMove(models.Model): flag_delivery_amt = fields.Boolean(string="Flag Delivery Amount", compute='compute_flag_delivery_amt') nomor_kwitansi = fields.Char(string="Nomor Kwitansi") other_subtotal = fields.Float(string="Other Subtotal", compute='compute_other_subtotal') + other_taxes = fields.Float(string="Other Taxes", compute='compute_other_taxes') + + def compute_other_taxes(self): + for rec in self: + rec.other_taxes = rec.other_subtotal * 0.12 def compute_other_subtotal(self): for rec in self: |
