diff --git a/account_credit_control_dunning_fees/model/line.py b/account_credit_control_dunning_fees/model/line.py
index 699c38d45..23803ebac 100644
--- a/account_credit_control_dunning_fees/model/line.py
+++ b/account_credit_control_dunning_fees/model/line.py
@@ -18,7 +18,7 @@
# along with this program. If not, see .
#
##############################################################################
-from openerp import models, fields
+from openerp import models, fields, api
class CreditControlLine(models.Model):
@@ -27,3 +27,10 @@ class CreditControlLine(models.Model):
_inherit = "credit.control.line"
dunning_fees_amount = fields.Float(string='Fees')
+ balance_due_total = fields.Float(string='Balance due with fees',
+ compute='compute_balance_due')
+
+ @api.one
+ @api.depends('dunning_fees_amount', 'balance_due')
+ def compute_balance_due(self):
+ self.balance_due_total = self.balance_due + self.dunning_fees_amount
diff --git a/account_credit_control_dunning_fees/report/report_credit_control_summary.xml b/account_credit_control_dunning_fees/report/report_credit_control_summary.xml
index 7bee3c5cf..e58ad2d9b 100644
--- a/account_credit_control_dunning_fees/report/report_credit_control_summary.xml
+++ b/account_credit_control_dunning_fees/report/report_credit_control_summary.xml
@@ -3,19 +3,19 @@
-
+
| Fees |
-
-
-
-
+
-
+
|
+
+
+