Reformat text shown with remaining_days widget
Project description
This module allows to remove format of text shown in views using the remaining_days widget. A list of states can be passed so the reformatting will only happen if the instance is in one of those states. This module does nothing on its own and it requires certain technical knowledge in order to include the functionalities provided in other modules.
Table of contents
Usage
To remove format in fields that use the remaining_days widget, it is necessary to do the following in another module:
Include this module in the other module’s dependencies list in manifest.
Include options=”{‘reformat’: True}” in the fields that use the remaining_days widget so the text is displayed without an specific format.
If the reformating only has to be performed if the instance is in certain states, the options declaration should be “options=”{‘reformat’: True, ‘reformat_states’: [‘state_1’, ‘state_2’]}”. It is possible to include as many states as needed in the reformat_states list.
Bug Tracker
Bugs are tracked on GitHub 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.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Manuel Regidor <manuel.regidor@sygel.es>
Valentín Vinagre <valentin.vinagre@sygel.es>
Maintainers
This module is part of the sygel-technology/sy-web project on GitHub.
You are welcome to contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo14_addon_remaining_days_widget_reformat_state-14.0.1.0.1.dev1-py3-none-any.whl
.
File metadata
- Download URL: odoo14_addon_remaining_days_widget_reformat_state-14.0.1.0.1.dev1-py3-none-any.whl
- Upload date:
- Size: 38.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 843a8728cdbaf16224e10f47e601b83a4100b5e207f74b87240ec0ce3e2d8b76 |
|
MD5 | 5c6a292bad9bc58d77b972fc8fc484cc |
|
BLAKE2b-256 | c5e4a32c1fe1dd4e41fe26fc5d7041f7e71b66c49a0ad7bb131eb36e769ffbb1 |