Repository
OCA/account-invoicing · module folder · Try on Runboat
Module version
2.1.0
Category
Warehouse Management
Folder size
0.14 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-invoicing
Last tracking update
2026-08-07 08:42:47
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Raphaël Valyi, Enric Tobella, Weblate, Ricard Calvo, OCA-git-bot, oca-ci, Magno Costa, ppyczko
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_br_sale_stock
Description
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 is 'consu', in case of
  'Service' still will be possible create from Sale Order.
- If set to Sale Order and Stock Picking, invoices can be created from
  both the Sale Order and the Stock Picking. When invoicing from the
  Sale Order, the related picking is automatically marked as invoiced.
  The picking wizard also caps quantities to prevent double invoicing
  when some units were already invoiced from the 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).

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
sale_stock_picking_invocing_res_company_form sale_stock_picking_invocing.res.company.form res.company form Inherits base.view_company_form
sale_stock_picking_invoicing_res_config_settings_form sale_stock_picking_invoicing.res.config.settings.form res.config.settings form Inherits sale.res_config_settings_view_form
view_sale_stock_invoice_onshipping Sale Stock Invoice Onshipping stock.invoice.onshipping Inherits stock_picking_invoicing.view_stock_invoice_onshipping
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (7)

New fields (1)
  • sale_invoicing_policy Selection
    default=_default_sale_invoicing_policy help="If set to Sale Order, keep native Odoo behaviour for creation of invoices from Sale Orders.\nIf set to Stock Picking, disallow creation of Invoices from Sale Orders for the cases where Product Type are 'consu', in case of 'Service' still will be possible create from Sale Order.\nIf set to Sale Order and Stock Picking, invoices can be created from both the Sale Order and the Stock Picking. The picking invoice state is synced after Sale Order invoicing, and the picking wizard caps quantities to prevent double invoicing." selection=[('sale_order', 'Sale Order'), ('stock_picking', 'Stock Picking'), ('both', 'Sale Order and Stock Picking')]
Public methods (0)

No public methods.

New fields (1)
  • sale_invoicing_policy Selection
    readonly=False related='company_id.sale_invoicing_policy'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • deduct_down_payments Boolean
    default=True args: 'Deduct down payments'
  • has_down_payments Boolean
    default=_default_has_down_payment args: 'Has down payments'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
266 days ago
Last activity
64 days ago
Repository
OCA/account-invoicing
Pull request
[17.0][MIG] sale_stock_picking_invoicing: Migration to 17.0 (#2178)