Metadata-Version: 2.1
Name: odoo-addon-delivery_state
Version: 19.0.1.0.0.5
Requires-Dist: odoo==19.0.*
Summary: Provides fields to be able to contemplate the tracking statesand also adds a global fields
Home-page: https://github.com/OCA/delivery-carrier
License: AGPL-3
Author: Trey (www.trey.es), FactorLibre, Tecnativa, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 19.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 State
==============

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

.. |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/19.0/delivery_state
    :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-19-0/delivery-carrier-19-0-delivery_state
    :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=19.0
    :alt: Try me on Runboat

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

This module adds additional functions that will be needed for the
carrier developments. It provides fields to be able to contemplate the
tracking states and also adds a global field so it can have generic
states in addition to the ones carrier gives us.

**Table of contents**

.. contents::
   :local:

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

A scheduled action for automating the tracking update for these pickings
can be configured going to *Settings > Technical > Scheduled Actions*
and then choosing *Update deliveries states*. It will update the pending
delivery states for the pickings with service providers with tracking
methods configured, and in pending state (not delivered or cancelled).

In order to send automatic notifications to the customer when the
picking is customer_delivered:

   1. Go to *Inventory > Configuration > Settings*.
   2. Enable the option *Email Confirmation (customer delivered)*.
   3. Choose the template "Delivery: Picking delivered by Email".

Usage
=====

Depending on the delivery service provider, the state tracking could be
more or less complete, since it could have or not the necessary API
calls implemented.

With regular methods (fixed, based on rules):

   1. Go to Inventory / Operations and open an outgoing pending picking.
   2. In the *Additional Info* tab, assign it a delivery carrier which
      is fixed or based on rules.
   3. Validate the picking and you'll see in the same tab the delivery
      state info with the shipping date and the shipping state.
   4. If enabled, an automatic notification will be sent to the picking
      customer.

When service provider methods are implemented, we can follow the same
steps as described before, but we'll get additionally:

   1. In the *Additional Info* tab, we'll see button *Update tracking
      state* to manually query the provider API for tracking updates for
      this expedition.

   2. Depending on the stated returned by the provider, we could get
      these states (field *Carrier State*):

         - Shipping recorded in carrier
         - In transit
         - Canceled shipment (finished)
         - Incident
         - Warehouse delivered
         - Customer delivered (finished)

   3. In the field *Tracking state* we'll get the tracking state name
      given by the provider (which is mapped to the ones in this module)

   4. In the field *Tracking history* we'll get the former states log.

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_state%0Aversion:%2019.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
-------

* Trey (www.trey.es)
* FactorLibre
* Tecnativa

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

- `Trey <https://www.trey.es>`__:

  - Roberto Lizana <roberto@trey.es>

- `FactorLibre <https://www.factorlibre.com>`__:

  - Zahra Velasco <zahra.velasco@factorlibre.com>

- `Tecnativa <https://www.tecnativa.com>`__:

  - Pedro M. Baeza
  - David Vidal
  - Víctor Martínez

- Marçal Isern <marsal.isern@qubiq.es>

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/19.0/delivery_state>`_ project on GitHub.

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