Sale Quotation Sourcing
sale_quotation_sourcing · OCA/sale-workflow
Health
63/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 51 months ago
-
Required by20/252 modules depend on it
-
Maturity18/25In 3 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
Combined: AGPL-3
Folder size
0.08 MB
Module directory on disk
Code analysis
10 migration notes
6 models
2 views
0 HTTP endpoints
License review
- sale_quotation_sourcing (LGPL-3) depends on base_exception (AGPL-3): combined with its dependencies it must be distributed under AGPL-3, including offering the source to users of a hosted instance. LICENSE_EFFECTIVE_UPGRADE
Based on the manifest licenses of this module and everything it depends on: a heuristic to spot problems early, not legal advice. Methodology
Migration considerations
ProcurementOrder— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourcePurchaseOrderLine— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourcePurchaseOrderLine— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceQuotationSourcingWizard— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceSaleOrder— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) (2 occurrences in this file) migration-api-multi-one · sourcesale_order_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- logistic_order, sale_quotation_sourcing_stock_route_transit
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
sale_order_form_view |
sale.order | form | Inherits sale.view_order_form | |
sale_order_sourcing_wizard |
sale.order.sourcing | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
New fields (0)
No new fields.
Public methods (1)-
make_po(self)@api.multilink the procurement to the PO line sourcing the SO line if the SO line is manually sourced. Otherwise, use the normal implementation.
New fields (0)
No new fields.
Public methods (2)-
name_get(self)@api.multiAdd the PO number in the name -
name_search(self, name, args=None, operator='ilike', limit=100)@api.modelDo the name search on purchase order, bounded by args
New fields (0)
No new fields.
Public methods (2)-
action_button_confirm(self)@api.multibefore triggering the workflow, if some lines need sourcing, run the sourcing wizard, otherwise, propagate the call and do the confirmation of the SO. -
has_consistent_routes(self)@api.multi
New fields (2)
-
manually_sourcedBooleanargs: 'Manually Sourced' -
sourced_byMany2one → purchase.order.linecopy=Falsedomain="[('product_id', '=', product_id), ('order_id.state', 'in', ['draft', 'confirmed'])]" args: 'purchase.order.line'
-
has_consistent_route(self)@api.multi -
needs_sourcing(self)@api.multi -
set_route_form_so(self)@api.one@api.onchange('sourced_by')@api.constrains('sourced_by')Set route on SO line based on fields sourced_by. Wee look for the PO related to current SO line by the sourced_by fields. If the PO has a destination location with usage "customer" we apply the dropshipping route to current SO line. If the PO has a destination location with usage "internal" we apply the make to order route to current SO line. As there is no trigger decorator that works on non computed fields we use constrains decorator instead.
New fields (4)
-
po_line_idMany2one → purchase.order.linedomain="[('product_id', '=', product_id), ('order_id.state', 'in', ['draft', 'confirmed'])]"string='Sourced By' args: 'purchase.order.line' -
product_idMany2one → product.productrelated=('so_line_id', 'product_id')string='Product' args: 'product.product' -
so_line_idMany2one → sale.order.linestring='Sale Order Line' args: 'sale.order.line' -
wizard_idMany2one → sale.order.sourcingstring='Wizard' args: 'sale.order.sourcing'
No public methods.
New fields (2)
-
line_idsOne2many → sale.order.line.sourcingstring='Lines' args: 'sale.order.line.sourcing', 'wizard_id' -
sale_idMany2one → sale.orderstring='Sale Order' args: 'sale.order'
-
action_done(self)@api.multi
Loading…
Loading…