Metadata-Version: 2.1
Name: odoo-addon-sy_web_widget_remaining_days_reformat_state
Version: 17.0.1.0.0.1
Requires-Python: >=3.10
Requires-Dist: odoo>=17.0a,<17.1dev
Requires-Dist: openupgradelib
Summary: Reformat text shown with remaining_days widget
Home-page: https://github.com/sygel-technology/sy-web
License: AGPL-3
Author: Sygel, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 17.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

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

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

.. |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/license-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-sygel--technology%2Fsy--web-lightgray.png?logo=github
    :target: https://github.com/sygel-technology/sy-web/tree/17.0/sy_web_widget_remaining_days_reformat_state
    :alt: sygel-technology/sy-web

|badge1| |badge2| |badge3|

This module allows to remove format of text shown in views like 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:

1. Include this module in the other module's dependencies list in
   manifest.
2. Include in the fields that you want the remaining_days_reformat_state
   wisget.
3. Include options="{'reformat': True}" in the fields that use the
   remaining_days_reformat_state widget so the text is displayed without
   an specific format.
4. 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:%20sy_web_widget_remaining_days_reformat_state%0Aversion:%2017.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
------------

- `Sygel <https://www.sygel.es>`__:

  - Valentín Vinagre
  - Manuel Regidor
  - Ángel García de la Chica Herrera

Maintainers
-----------

This module is part of the `sygel-technology/sy-web <https://github.com/sygel-technology/sy-web/tree/17.0/sy_web_widget_remaining_days_reformat_state>`_ project on GitHub.

You are welcome to contribute.
