summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/account_move.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-03-18 09:23:50 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-03-18 09:23:50 +0700
commitde8ac2be17f65cc1e551a0338ca49f30c4a021f2 (patch)
tree332dd85d758251f79dddcf0fb4e429c85498b0d3 /indoteknik_custom/models/account_move.py
parentc263662a9dd388eb9b23ae6ab8d9cd3f2bffb3f8 (diff)
parent9acebb424ead07109438e46c4f96038c9f50fbec (diff)
Merge branch 'odoo-backup' into cr/manzila-commision
# Conflicts: # indoteknik_custom/models/commision.py # indoteknik_custom/security/ir.model.access.csv
Diffstat (limited to 'indoteknik_custom/models/account_move.py')
-rw-r--r--indoteknik_custom/models/account_move.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index b2ac47c2..45fdb8df 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -65,6 +65,7 @@ class AccountMove(models.Model):
other_subtotal = fields.Float(string="Other Subtotal", compute='compute_other_subtotal')
other_taxes = fields.Float(string="Other Taxes", compute='compute_other_taxes')
is_hr = fields.Boolean(string="Is HR?", default=False)
+ purchase_order_id = fields.Many2one('purchase.order', string='Purchase Order')
def _update_line_name_from_ref(self):
"""Update all account.move.line name fields with ref from account.move"""
@@ -75,7 +76,8 @@ class AccountMove(models.Model):
def compute_other_taxes(self):
for rec in self:
- rec.other_taxes = rec.other_subtotal * 0.12
+ rec.other_taxes = round(rec.other_subtotal * 0.12, 2)
+
def compute_other_subtotal(self):
for rec in self: