.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
    :alt: License: AGPL-3

Stock Dropshipping Dual Invoice
===============================

This module allows to handle a case which does not work on Odoo 8.0: a drop
shipping delivery where the attached sale and purchase are both invoiced on
delivery.

The wizard to generate the invoice has been modified to ask for the two
journals to use for the two invoices that will be created.

The generated customer and supplier invoices are then linked to the sale and
purchase, respectively.

See also the discussion on odoo/odoo#4131.

Usage
=====

- Choose a product that has a supplier.
- Create a Sale of the product. Choose in the line the Drop Shipping route,
  and choose to invoice in delivery.
- Find the automatically generated RFQ, in it specify invoicing on
  delivery, and validate.
- Open the delivery, transfer it, and click the button to generate the
  invoice.
- Fill in the wizard. Two invoices will be generated -- one for the customer,
  one for the supplier.
- You can find the generated customer and supplier invoices from the Sale and
  Purchase Orders, respectively.

Known issues
------------

* When the wizard creates a supplier invoice and a customer invoice, the
  returned view doesn't allow to show invoices in form view, because the form
  wouldn't be correctly displayed.


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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/stock-logistics-workflow/issues/new?body=module:%20stock_dropshipping_dual_invoice%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

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

* Leonardo Pistone <leonardo.pistone@camptocamp.com>
* Pedro M. Baeza <pedro.baeza@gmail.com>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit http://odoo-community.org.