Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 5 months ago
  • Required by15/25
    1 module depends on it
  • Maturity25/25
    In 4 Odoo series since 14.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.15 MB
Module directory on disk
Code analysis 0 migration notes 7 models 3 views 0 HTTP endpoints

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 and Sale Commission.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_br_sale_stock

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…

Loading…