Skip to content
Snippets Groups Projects
Commit 653b74623fdd authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

reporting_balance: Monetary type, mention in docs

parent 1f77e2953255
No related branches found
No related tags found
No related merge requests found
......@@ -7,10 +7,10 @@
11.0.1.0.0
==========
* Odoo 11 migration with account consultation.
* Odoo 11 migration with account consultation & reporting_balance.
8.0.1.2.0
=========
* Account consultation.
......@@ -11,9 +11,10 @@
8.0.1.2.0
=========
* Account consultation.
* Accounting entries: Add a balance which is simply debit - credit.
8.0.1.1.0
......
......@@ -12,6 +12,7 @@
This module adds:
* Account consultation.
* Accounting entries: Add a balance which is simply debit - credit.
* Invoices: "Paid amount" field.
......
......@@ -35,6 +35,7 @@
This module adds:
* Account consultation.
* Accounting entries: Add a balance which is simply debit - credit.
* Invoices: "Paid amount" field.
......
......@@ -20,8 +20,6 @@
from odoo import api, fields, models
import odoo.addons.decimal_precision as dp
class AccountingEntry(models.Model):
"""Adapt accounting entries to reporting needs:
......@@ -35,6 +33,6 @@
def _get_reporting_balance(self):
self.reporting_balance = (self.debit or 0.0) - (self.credit or 0.0)
reporting_balance = fields.Float(
reporting_balance = fields.Monetary(
compute=_get_reporting_balance,
string="Balance (reporting)",
......@@ -39,6 +37,5 @@
compute=_get_reporting_balance,
string="Balance (reporting)",
digits=dp.get_precision("Account"), # Like base amounts.
help="debit - credit",
store=True,
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment