Metadata-Version: 2.1
Name: odoo14-addon-remaining_days_widget_reformat_state
Version: 14.0.1.0.1.dev1
Summary: Reformat text shown with remaining_days widget
Home-page: https://www.sygel.es
Author: Sygel, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 14.0
Requires-Python: >=3.6
Requires-Dist: odoo<14.1dev,>=14.0a

======================================
Remaining Days Widget - Reformat State
======================================

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

.. |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/github-sygel--technology%2Fsy--web-lightgray.png?logo=github
    :target: https://github.com/sygel-technology/sy-web/tree/14.0/remaining_days_widget_reformat_state
    :alt: sygel-technology/sy-web

|badge1| |badge2|

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**

.. contents::
   :local:

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 <https://github.com/sygel-technology/sy-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/sygel-technology/sy-web/issues/new?body=module:%20remaining_days_widget_reformat_state%0Aversion:%2014.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
~~~~~~~

* Sygel

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 <https://github.com/sygel-technology/sy-web/tree/14.0/remaining_days_widget_reformat_state>`_ project on GitHub.

You are welcome to contribute.
