_calculate_balance in /opt/bahmni-erp/bahmni-addons/bahmni_sale/models/sale_order.py does not calculate order.total_outstanding_balance which was getting calculated in OpenERP this code as below
Because it is Many2one field of account.account so it will pull all the records from it.
And we don’t have any filter to show only Discount related accounts.
We can simply type account name i.e. ‘Discount’ and it will search the related accounts and we can choose the related account. or we can do the same by Account Number as well.