Sales Stock Picking Invoicing
sale_stock_picking_invoicing · OCA/account-invoicing
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 4 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
-
sale_invoicing_policySelectiondefault=_default_sale_invoicing_policyhelp="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')]
No public methods.
-
sale_invoicing_policySelectionreadonly=Falserelated='company_id.sale_invoicing_policy'
No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
-
deduct_down_paymentsBooleandefault=True args: 'Deduct down payments' -
has_down_paymentsBooleandefault=_default_has_down_payment args: 'Has down payments'
No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…