Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions web_view_monetary_format/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
========================
Web View Monetary Format
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:34a379bb5c1b0ae0a35bcca3779218eefe0504261d8c6a1b99de0b78e19de893
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/18.0/web_view_monetary_format
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_view_monetary_format
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

In standard Odoo, pivot views format all monetary fields with the same
number of decimal places, regardless of the currency associated with
each record. For example, Japanese Yen (JPY) values that should display
as whole numbers (e.g. "1,000") are shown with unnecessary decimals
(e.g. "1,000.00").

This module patches the pivot view to respect the ``currency_digits``
attribute of monetary fields so that each cell is formatted according to
its currency's rounding precision.

Note: This module does not need to be migrated to Odoo 19, as the core
now covers this functionality.

**Table of contents**

.. contents::
:local:

Known issues / Roadmap
======================

- Mixed-currency aggregation (e.g. group totals spanning JPY and USD
rows) is out of scope. The module formats each cell individually but
does not attempt to handle or warn about summing values across
different currencies.
- Graph views are not yet covered. Currently only pivot views are
supported.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_view_monetary_format%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Quartile

Contributors
------------

- `Quartile <https://www.quartile.co>`__

- Yoshi Tashiro

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-yostashiro| image:: https://github.com/yostashiro.png?size=40px
:target: https://github.com/yostashiro
:alt: yostashiro
.. |maintainer-AungKoKoLin1997| image:: https://github.com/AungKoKoLin1997.png?size=40px
:target: https://github.com/AungKoKoLin1997
:alt: AungKoKoLin1997

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-yostashiro| |maintainer-AungKoKoLin1997|

This module is part of the `OCA/web <https://github.com/OCA/web/tree/18.0/web_view_monetary_format>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
22 changes: 22 additions & 0 deletions web_view_monetary_format/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2026 Quartile (https://www.quartile.co)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Web View Monetary Format",
"version": "18.0.1.0.0",
"category": "Hidden",
"summary": "Currency-aware decimal formatting in aggregated views",
"author": "Quartile, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/web",
"license": "AGPL-3",
"depends": ["web"],
"assets": {
"web.assets_backend_lazy": [
"web_view_monetary_format/static/src/views/pivot/**/*",
],
"web.assets_tests": [
"web_view_monetary_format/static/src/test/**/*",
],
},
"installable": True,
"maintainers": ["yostashiro", "AungKoKoLin1997"],
}
3 changes: 3 additions & 0 deletions web_view_monetary_format/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions web_view_monetary_format/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- [Quartile](https://www.quartile.co)
- Yoshi Tashiro
11 changes: 11 additions & 0 deletions web_view_monetary_format/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
In standard Odoo, pivot views format all monetary fields with the same number of
decimal places, regardless of the currency associated with each record. For example,
Japanese Yen (JPY) values that should display as whole numbers (e.g. "1,000") are shown
with unnecessary decimals (e.g. "1,000.00").

This module patches the pivot view to respect the `currency_digits` attribute of
monetary fields so that each cell is formatted according to its currency's rounding
precision.

Note: This module does not need to be migrated to Odoo 19, as the core now covers this
functionality.
4 changes: 4 additions & 0 deletions web_view_monetary_format/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Mixed-currency aggregation (e.g. group totals spanning JPY and USD rows) is out of
scope. The module formats each cell individually but does not attempt to handle or
warn about summing values across different currencies.
- Graph views are not yet covered. Currently only pivot views are supported.
Loading
Loading