Metadata-Version: 2.1
Name: odoo-addon-delivery_date_exclude_service
Version: 18.0.1.0.0.2
Requires-Python: >=3.10
Requires-Dist: odoo==18.0.*
Summary: Exclude service products from delivery date computation
Home-page: https://github.com/OCA/delivery-carrier
License: AGPL-3
Author: Camptocamp, BCIM, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.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

=============================
Delivery Date Exclude Service
=============================

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

.. |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-OCA%2Fdelivery--carrier-lightgray.png?logo=github
    :target: https://github.com/OCA/delivery-carrier/tree/18.0/delivery_date_exclude_service
    :alt: OCA/delivery-carrier
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/delivery-carrier-18-0/delivery-carrier-18-0-delivery_date_exclude_service
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/delivery-carrier&target_branch=18.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module provides granular control over which service products impact
the calculated expected delivery date on a Sales Order.

It works by directly filtering out the lead times from specific service
lines before the final delivery date is determined.

1. New Field: A boolean field named "Affect Delivery Date" is added to
   the product template ("Sales" tab, "Extra Info" section). It is
   visible only for products of type ``service``.
2. **Exclusion:** When a Sale Order line contains a Service Product
   where the "Affect Delivery Date" flag is unchecked:

   - The line's lead time is ignored.
   - This ensures the service product's delay is completely excluded
     from the final order date calculation.

3. **Inclusion:** All other products (Physical Goods, and Services with
   the flag checked) contribute their standard lead time to the final
   delivery date.

**Table of contents**

.. contents::
   :local:

Configuration
=============

To make use of this feature, you only need to configure products of type
``service`` that you want to impact the delivery date.

1. Navigate to "Inventory > Products > Products".
2. Select the "Service" type product you wish to configure.
3. Switch to the "Sales" tab.
4. Check the "Affect Delivery Date" boolean field in the "Extra Info"
   section.

..

   **Note:** By default all Service products are set to to NOT affect
   the Sales Order delivery date computation.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/delivery-carrier/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/OCA/delivery-carrier/issues/new?body=module:%20delivery_date_exclude_service%0Aversion:%2018.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
-------

* Camptocamp
* BCIM

Contributors
------------

- Tomasz Walter <tomasz.walter@camptocamp.com>
- Simone Orsi <simone.orsi@camptocamp.com>
- Jacques-Etienne Baudoux (BCIM) <je@bcim.be>

Other credits
-------------



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

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/delivery-carrier <https://github.com/OCA/delivery-carrier/tree/18.0/delivery_date_exclude_service>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
