|
| 1 | +============================= |
| 2 | +Report Qweb Decimal Precision |
| 3 | +============================= |
| 4 | + |
| 5 | +.. |
| 6 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 7 | + !! This file is generated by oca-gen-addon-readme !! |
| 8 | + !! changes will be overwritten. !! |
| 9 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 10 | + !! source digest: sha256:88e7df18a281dcca7d418a47e7a1a6130516e0352493ba792061d9ad97cfa7a0 |
| 11 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 12 | +
|
| 13 | +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png |
| 14 | + :target: https://odoo-community.org/page/development-status |
| 15 | + :alt: Beta |
| 16 | +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png |
| 17 | + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
| 18 | + :alt: License: AGPL-3 |
| 19 | +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github |
| 20 | + :target: https://github.com/OCA/reporting-engine/tree/16.0/report_qweb_decimal_precision |
| 21 | + :alt: OCA/reporting-engine |
| 22 | +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png |
| 23 | + :target: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_qweb_decimal_precision |
| 24 | + :alt: Translate me on Weblate |
| 25 | +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png |
| 26 | + :target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=16.0 |
| 27 | + :alt: Try me on Runboat |
| 28 | + |
| 29 | +|badge1| |badge2| |badge3| |badge4| |badge5| |
| 30 | + |
| 31 | +This module allows administrators to define the decimal precision of |
| 32 | +float fields for QWeb report presentation. |
| 33 | + |
| 34 | +**Table of contents** |
| 35 | + |
| 36 | +.. contents:: |
| 37 | + :local: |
| 38 | + |
| 39 | +Use Cases / Context |
| 40 | +=================== |
| 41 | + |
| 42 | +Odoo's QWeb reports display values of float fields based on the decimal |
| 43 | +accuracy settings, which are global and sometimes bring inconveniences. |
| 44 | + |
| 45 | +For example: |
| 46 | + |
| 47 | +- You have some products which require a fine precision with inventory |
| 48 | + management (e.g. liquid, powder, etc.) and you set 'Product Unit of |
| 49 | + Measure' to 4, but you don't want to show '2.0000 Units' on your |
| 50 | + quotation to sell assembled products (you may just want to show '2 |
| 51 | + Units'). |
| 52 | +- You purchase some raw materials in bulk in USD whose unit price comes |
| 53 | + down to the 4th decimal place and you set 'Product Price' to this |
| 54 | + level or precision, but you don't want to show the unit price of a |
| 55 | + product as '120,000.0000' on your JPY quotation (you would just want |
| 56 | + to show '120,000'). |
| 57 | + |
| 58 | +This module is designed to address these inconveniences. |
| 59 | + |
| 60 | +Configuration |
| 61 | +============= |
| 62 | + |
| 63 | +Go to *Settings > Technical > Reporting > Decimal Precision QWeb*, and |
| 64 | +create records according to your needs. |
| 65 | + |
| 66 | +For each record: |
| 67 | + |
| 68 | +- choose a model and a float-type field (required) |
| 69 | +- set UoM and UoM Field, or Currency and Currency Field (optional) |
| 70 | +- set Company (optional) |
| 71 | +- set Digits (required) |
| 72 | + |
| 73 | +Usage |
| 74 | +===== |
| 75 | + |
| 76 | +Print a QWeb report (quotation, invoice, purchase order, etc.), and the |
| 77 | +value presentation for fields like line quantity and price unit are |
| 78 | +adjusted according to the Decimal Precision QWeb configuration. |
| 79 | + |
| 80 | +Note that among matching config records, the one with the strictest |
| 81 | +condition will be adopted. |
| 82 | + |
| 83 | +Bug Tracker |
| 84 | +=========== |
| 85 | + |
| 86 | +Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_. |
| 87 | +In case of trouble, please check there if your issue has already been reported. |
| 88 | +If you spotted it first, help us to smash it by providing a detailed and welcomed |
| 89 | +`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_qweb_decimal_precision%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. |
| 90 | + |
| 91 | +Do not contact contributors directly about support or help with technical issues. |
| 92 | + |
| 93 | +Credits |
| 94 | +======= |
| 95 | + |
| 96 | +Authors |
| 97 | +------- |
| 98 | + |
| 99 | +* Quartile Limited |
| 100 | + |
| 101 | +Contributors |
| 102 | +------------ |
| 103 | + |
| 104 | +- `Quartile Limited <https://www.quartile.co>`__: |
| 105 | + |
| 106 | + - Yoshi Tashiro |
| 107 | + - Aung Ko Ko Lin |
| 108 | + |
| 109 | +Maintainers |
| 110 | +----------- |
| 111 | + |
| 112 | +This module is maintained by the OCA. |
| 113 | + |
| 114 | +.. image:: https://odoo-community.org/logo.png |
| 115 | + :alt: Odoo Community Association |
| 116 | + :target: https://odoo-community.org |
| 117 | + |
| 118 | +OCA, or the Odoo Community Association, is a nonprofit organization whose |
| 119 | +mission is to support the collaborative development of Odoo features and |
| 120 | +promote its widespread use. |
| 121 | + |
| 122 | +This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/16.0/report_qweb_decimal_precision>`_ project on GitHub. |
| 123 | + |
| 124 | +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
0 commit comments