Metadata-Version: 2.1
Name: odoo-addon-sale_stock_picking_invoicing
Version: 18.0.1.0.2
Requires-Python: >=3.10
Requires-Dist: odoo-addon-stock_picking_invoice_link==18.0.*
Requires-Dist: odoo-addon-stock_picking_invoicing==18.0.*
Requires-Dist: odoo==18.0.*
Summary: Sales Stock Picking Invocing
Home-page: https://github.com/OCA/account-invoicing
License: AGPL-3
Author: Akretion, 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

============================
Sales Stock Picking Invocing
============================

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

.. |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%2Faccount--invoicing-lightgray.png?logo=github
    :target: https://github.com/OCA/account-invoicing/tree/18.0/sale_stock_picking_invoicing
    :alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/account-invoicing-18-0/account-invoicing-18-0-sale_stock_picking_invoicing
    :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/account-invoicing&target_branch=18.0
    :alt: Try me on Runboat

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

This module extends Stock Picking Invoicing implementation to Sale, you
can define the 'Sale Invoicing Policy':

- If set to Sale Order, keep native Odoo behaviour for creation of
  invoices from Sale Orders.
- If set to Stock Picking, disallow creation of Invoices from Sale
  Orders for the cases where the Product Type are 'Product', in case of
  'Service' still will be possible create from Sale Order.

For stock.moves, override price calculation that is present in
stock_picking_invoicing, with the native Sale Order Line price
calculation, same for the partner_id and other informations used to
create the Invoice from Sale Order as such Payment Terms, Down Payments,
Incoterm, Client Ref,etc by using sale methods to get data in order to
avoid the necessity of 'glue modules' (small modules made just to avoid
indirect dependencies), so in the case of any module include a new field
in Invoice created by Sale this field also be include when created by
Picking, for example the modules `Account Payment
Sale <https://github.com/OCA/bank-payment/tree/14.0/account_payment_sale>`__
and `Sale
Commission <https://github.com/OCA/commission/tree/14.0/sale_commission>`__.

**Table of contents**

.. contents::
   :local:

Installation
============

This module depends on:

- sale_management
- sale_stock
- stock_picking_invoicing
- stock_picking_invoice_link

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

Define 'Sale Invoicing Policy', if the invoice should be created from
Sale Order or from Stock Picking, go to:

**Settings > Users & Companies > Companies**

or

**Sales > Configuration > Settings in Invoicing**

Usage
=====

If 'Stock Picking' is choose as Policy the creation of Invoice from Sale
Order works only for Service lines, in the case of Sale Order has
Products and Service lines will be create two Invoices.

Known issues / Roadmap
======================

- It is be possible reference multiple sale lines in only one invoice
  line, but there are a problem the field qty_invoiced in
  sale.order.line show the quantity of invoice line without consider, in
  this case, that the value is the sum of others sale lines
  https://github.com/odoo/odoo/blob/14.0/addons/sale/models/sale.py#L1230,
  what can make confuse the user about the real Invoiced Quantity,
  reference https://github.com/odoo/odoo/pull/77195

Changelog
=========

16.0.1.0.0 (2025-01-14)
-----------------------

- Migration to version 16.0

15.0.1.0.0 (2024-10-25)
-----------------------

- Migration to version 15.0 .

14.0.1.0.0 (2024-03-12)
-----------------------

- [ADD] Module sale_stock_picking_invoicing based in l10n_br_sale_stock
  https://github.com/OCA/l10n-brazil/tree/14.0/l10n_br_sale_stock .

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/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/account-invoicing/issues/new?body=module:%20sale_stock_picking_invoicing%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
-------

* Akretion

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

- `Akretion <https://akretion.com>`__:

  - Renato Lima <renato.lima@akretion.com.br>
  - Raphaël Valyi <raphael.valyi@akretion.com.br>
  - Magno Costa <magno.costa@akretion.com.br>

- `KMEE <https://www.kmee.com.br>`__:

  - Gabriel Cardoso de Faria <gabriel.cardoso@kmee.com.br>
    `APSL-Nagarro <https://www.apsl.tech>`__:

- Patryk Pyczko <ppyczko@apsl.net>

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.

.. |maintainer-mbcosta| image:: https://github.com/mbcosta.png?size=40px
    :target: https://github.com/mbcosta
    :alt: mbcosta
.. |maintainer-renatonlima| image:: https://github.com/renatonlima.png?size=40px
    :target: https://github.com/renatonlima
    :alt: renatonlima

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-mbcosta| |maintainer-renatonlima| 

This module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/18.0/sale_stock_picking_invoicing>`_ project on GitHub.

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