Sale Order add produced by-products
sale_order_add_byproduct · OCA/sale-workflow
Health
60/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
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.11 MB
Module directory on disk
Code analysis
0 migration notes
4 models
1 view
0 HTTP endpoints
Description
This module extends the functionality of Manufacturing Orders to automatically transfer produced by-products to the associated Sale Order once the Manufacturing Order is closed. This allows for easier invoicing and management of by-products sold to customers.
Key Features
- Automatically adds/updates Sale Order Lines for by-products when a Manufacturing Order is marked as 'done'.
- Prevents additional Manufacturing Orders or procurements from being triggered for these by-product lines, as they are a result of existing production.
- Ensures accurate tracking of by-product quantities on the Sale Order for invoicing purposes.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
res_config_settings_view_form_inherit_sale_order_add_byproduct |
res.config.settings.view.form.inherit.sale.order.add.byproduct | res.config.settings | form | Inherits mrp.res_config_settings_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (0)
No new fields.
Public methods (1)-
button_mark_done(self)Overrides the standard button_mark_done to also add by-products to the sale order.
New fields (1)
-
byproduct_note_templateCharhelp='Template for the note on sale order lines created for by-products. You can use placeholders like {product_name} and {mo_name}.'string='By-product Note Template'
No public methods.
New fields (1)
-
byproduct_note_templateCharreadonly=Falserelated='company_id.byproduct_note_template'
No public methods.
New fields (1)
-
is_mrp_byproduct_lineBooleandefault=Falsehelp="If True, this sale order line was automatically added from a Manufacturing Order's by-product production and should not trigger new procurements."string='Added from MO By-product'
No public methods.