Metadata-Version: 2.1
Name: odoo10-addon-sale-merge-draft-invoice
Version: 10.0.1.0.0.99.dev8
Summary: Sale Merge Draft Invoice
Home-page: https://github.com/OCA/sale-workflow
Author: Eficent, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
License: LGPL-3
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Requires-Python: ~=2.7
Requires-Dist: odoo10-addon-sale-order-action-invoice-create-hook
Requires-Dist: odoo (<10.1dev,>=10.0)

.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg
   :target: https://www.gnu.org/licenses/lgpl
   :alt: License LGPL-3

========================
Sale Merge Draft Invoice
========================

This module merges new invoices with existing draft ones when creating them.

The merge between invoices is done when the partner and the currency are the
same.

This feature is activated from Sales / Settings and assigned to the company
settings.

Users assigned to the group 'Change sale to invoice merge proposal'
have the possibility to activate or deactivate this option at the moment of
invoicing.

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

#. Go to 'Sales / Configuration / Settings'
#. In 'Quotations & Sales' go to 'Invoices' and activate the option 'Merge
   new invoices with existing draft ones'.
#. Go to 'Settings / Users / Groups' and assign to the group 'Change sale
   to invoice merge proposal' all the users that can have the possibility to
   activate/deactivate the option of merging the new invoice with existing
   draft ones.

Usage
=====

Create an Invoice from a single Sale Order
------------------------------------------

#. Go to 'Sales / Sales / Sales Orders'.
#. Select or click in a sale order.
#. Go to 'Action' and click 'Invoice Order' or press the button 'Invoice
   Order' if you are inside a sale order. The result, in case there are draft
   invoices that correspond to this one, is an existing draft invoice with
   the new lines added.
   In the wizard, if the user belongs to the group 'Change sale to invoice merge
   proposal', the option to deactivate the 'Merge with draft invoices' is
   given. In this case, the result is a new draft invoice is created
   following the usual behaviour.

Create Invoices from a group of Sales Orders
--------------------------------------------

#. Go to 'Sales / Sales / Sales Orders'.
#. Select all the sales orders with status 'To invoice'.
#. Go to 'Action' and click 'Invoice Order'. As a result, new draft invoices
   will be merged with existing ones when corresponding.
   In the wizard, if the user belongs to the group 'Change sale to invoice merge
   proposal', the option to deactivate the 'Merge with draft invoices' is
   given. In this case, the result is a new draft invoice for every sale
   order following the usual behaviour.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
   :alt: Try me on Runbot
   :target: https://runbot.odoo-community.org/runbot/167/10.0

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

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/purchase-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.

Credits
=======

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

* Roser Garcia <roser.garcia@eficent.com>
* Jordi Ballester Alomar <jordi.ballester@eficent.com>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://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 https://odoo-community.org.


