|
| 1 | +========================= |
| 2 | +Report Qweb Field Options |
| 3 | +========================= |
| 4 | + |
| 5 | +.. |
| 6 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 7 | + !! This file is generated by oca-gen-addon-readme !! |
| 8 | + !! changes will be overwritten. !! |
| 9 | + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
| 10 | + !! source digest: sha256:57f77e238517a4774ef6dd76a5487221564468ed0f58e18caa48f32632ac56a7 |
| 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_field_options |
| 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_field_options |
| 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 float fields and |
| 32 | +add option values to fields (e.g., adding a date widget option to datetime fields) for |
| 33 | +QWeb report and view presentation. |
| 34 | + |
| 35 | +**Table of contents** |
| 36 | + |
| 37 | +.. contents:: |
| 38 | + :local: |
| 39 | + |
| 40 | +Configuration |
| 41 | +============= |
| 42 | + |
| 43 | +Go to *Settings > Technical > Reporting > Qweb Field Options*, and create records |
| 44 | +according to your needs. |
| 45 | + |
| 46 | +For each record: |
| 47 | + |
| 48 | +- Set **Model** and **Field** (required) |
| 49 | +- Set **UoM** and **UoM Field**, or **Currency** and **Currency Field** only for fields |
| 50 | + of float type (optional) |
| 51 | +- Set **Company** (optional) |
| 52 | +- Set **Options** as a string representation of a dictionary. E.g., ``{"widget": "date"}``, |
| 53 | + ``{"widget": "monetary"}``, or ``{'widget': 'contact', 'fields': ['name', 'phone']}`` |
| 54 | +- Set **Digits** (only for float-type fields). The value is ignored if Options is set |
| 55 | + |
| 56 | +Usage |
| 57 | +===== |
| 58 | + |
| 59 | +Print a QWeb report (quotation, invoice, purchase order, etc.), and the value |
| 60 | +presentation for fields like line quantity, price unit and date order are adjusted |
| 61 | +according to the Qweb Field Options configuration. |
| 62 | + |
| 63 | +Note that among matching configuration records, the one with the strictest condition will be |
| 64 | +applied. |
| 65 | + |
| 66 | +Known issues / Roadmap |
| 67 | +====================== |
| 68 | + |
| 69 | +Assigning Options in a QWeb Field Options record can cause UI issues if a field is |
| 70 | +defined twice with different widgets in a view. |
| 71 | + |
| 72 | +For example, adding ``{"widget": "date"}`` to the date_approve field in a purchase order |
| 73 | +can result in two dates appearing under the Confirmation Date column in the portal view. |
| 74 | +This occurs because the field is defined twice with different widgets. |
| 75 | + |
| 76 | +Reference: https://github.com/odoo/odoo/blob/5eec379/addons/purchase/views/portal_templates.xml#L101-L102 |
| 77 | + |
| 78 | +Bug Tracker |
| 79 | +=========== |
| 80 | + |
| 81 | +Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_. |
| 82 | +In case of trouble, please check there if your issue has already been reported. |
| 83 | +If you spotted it first, help us to smash it by providing a detailed and welcomed |
| 84 | +`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_qweb_field_options%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. |
| 85 | + |
| 86 | +Do not contact contributors directly about support or help with technical issues. |
| 87 | + |
| 88 | +Credits |
| 89 | +======= |
| 90 | + |
| 91 | +Authors |
| 92 | +~~~~~~~ |
| 93 | + |
| 94 | +* Quartile |
| 95 | + |
| 96 | +Contributors |
| 97 | +~~~~~~~~~~~~ |
| 98 | + |
| 99 | +* `Quartile <https://www.quartile.co>`_: |
| 100 | + |
| 101 | + * Yoshi Tashiro |
| 102 | + * Aung Ko Ko Lin |
| 103 | + |
| 104 | +Maintainers |
| 105 | +~~~~~~~~~~~ |
| 106 | + |
| 107 | +This module is maintained by the OCA. |
| 108 | + |
| 109 | +.. image:: https://odoo-community.org/logo.png |
| 110 | + :alt: Odoo Community Association |
| 111 | + :target: https://odoo-community.org |
| 112 | + |
| 113 | +OCA, or the Odoo Community Association, is a nonprofit organization whose |
| 114 | +mission is to support the collaborative development of Odoo features and |
| 115 | +promote its widespread use. |
| 116 | + |
| 117 | +This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/16.0/report_qweb_field_options>`_ project on GitHub. |
| 118 | + |
| 119 | +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
0 commit comments