From d406e0cc949f8f35631d872993850f3ccec0821d Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 20 Jan 2025 16:03:00 +0700 Subject: add other taxes in account move --- indoteknik_custom/models/account_move.py | 5 +++++ 1 file changed, 5 insertions(+) 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: -- cgit v1.2.3