Skip to main content

Reformat text shown with remaining_days widget

Project description

Beta sygel-technology/sy-web

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:

  1. Include this module in the other module’s dependencies list in manifest.

  2. Include options=”{‘reformat’: True}” in the fields that use the remaining_days widget so the text is displayed without an specific format.

  3. 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

Authors

  • Sygel

Contributors

Maintainers

This module is part of the sygel-technology/sy-web project on GitHub.

You are welcome to contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

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

File hashes

Hashes for odoo14_addon_remaining_days_widget_reformat_state-14.0.1.0.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 843a8728cdbaf16224e10f47e601b83a4100b5e207f74b87240ec0ce3e2d8b76
MD5 5c6a292bad9bc58d77b972fc8fc484cc
BLAKE2b-256 c5e4a32c1fe1dd4e41fe26fc5d7041f7e71b66c49a0ad7bb131eb36e769ffbb1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page