Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Accounting Reports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo modules
Accounting Reports
Commits
653b74623fdd
Commit
653b74623fdd
authored
5 years ago
by
Houzefa Abbasbhay
Browse files
Options
Downloads
Patches
Plain Diff
reporting_balance: Monetary type, mention in docs
parent
1f77e2953255
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
NEWS.rst
+2
-1
2 additions, 1 deletion
NEWS.rst
README.rst
+1
-0
1 addition, 0 deletions
README.rst
__manifest__.py
+1
-0
1 addition, 0 deletions
__manifest__.py
models/account_move_line.py
+1
-4
1 addition, 4 deletions
models/account_move_line.py
with
5 additions
and
5 deletions
NEWS.rst
+
2
−
1
View file @
653b7462
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
README.rst
+
1
−
0
View file @
653b7462
...
...
@@ -12,6 +12,7 @@
This module adds:
* Account consultation.
* Accounting entries: Add a balance which is simply debit - credit.
* Invoices: "Paid amount" field.
...
...
This diff is collapsed.
Click to expand it.
__manifest__.py
+
1
−
0
View file @
653b7462
...
...
@@ -35,6 +35,7 @@
This module adds:
* Account consultation.
* Accounting entries: Add a balance which is simply debit - credit.
* Invoices:
"
Paid amount
"
field.
...
...
This diff is collapsed.
Click to expand it.
models/account_move_line.py
+
1
−
4
View file @
653b7462
...
...
@@ -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
,
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment