File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
account_invoice_check_total/models Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 44from odoo import api , fields , models
55from odoo .exceptions import ValidationError
66from odoo .tools .float_utils import float_compare
7+ from odoo .tools .misc import format_amount
78
89GROUP_AICT = "account_invoice_check_total.group_supplier_inv_check_total"
910
@@ -47,9 +48,17 @@ def action_post(self):
4748 "There is a difference of %(diff)s"
4849 )
4950 % {
50- "amount_total" : inv .amount_total ,
51- "check_total" : inv .check_total ,
52- "diff" : inv .check_total_display_difference ,
51+ "amount_total" : format_amount (
52+ self .env , inv .amount_total , inv .currency_id
53+ ),
54+ "check_total" : format_amount (
55+ self .env , inv .check_total , inv .currency_id
56+ ),
57+ "diff" : format_amount (
58+ self .env ,
59+ inv .check_total_display_difference ,
60+ inv .currency_id ,
61+ ),
5362 }
5463 )
5564 return super ().action_post ()
You can’t perform that action at this time.
0 commit comments