Sale with Multiple Operating Unit
sale_multi_operating_unit · OCA/operating-unit
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 77 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 12.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.07 MB
Module directory on disk
Code analysis
5 migration notes
5 models
2 views
0 HTTP endpoints
Migration considerations
SaleOrderQuote— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceSaleOrderQuote— 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) migration-api-multi-one · sourceSaleOrderQuoteLine— 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) migration-api-multi-one · sourceextend_view_order_form— 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 · sourcesale.order.quote— Migrating to 13.0: `track_visibility` was replaced by `tracking`; the old kwarg is ignored. Fields: state. migration-track-visibility
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
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 |
|---|---|---|---|---|
extend_view_order_form |
sale.order.form | sale.order | form | Inherits sale.view_order_form |
view_res_company_form |
res.company.form | res.company | form | Inherits base.view_company_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (0)
No new fields.
Public methods (1)-
onchange_date_deadline(self)@api.onchange('date_deadline')
New fields (1)
-
lead_description_templateTextdefault=_get_default_lead_description_templatehelp='Template used to provide the information for an operating unit to quote another.'required=Truestring='Lead Description Template'
No public methods.
New fields (1)
-
quote_idsOne2many → sale.order.quotestring='Internal Quotes' args: 'sale.order.quote', 'sale_id'
-
create(self, vals)@api.model
New fields (9)
-
assigned_toMany2one → res.usersrelated='lead_id.user_id' args: 'res.users' -
expected_dateDatestring='Expected Date' -
lead_idMany2one → crm.leadcomodel_name='crm.lead'readonly=Truestring='Lead' -
line_idsOne2many → sale.order.quote.linestring='Products' args: 'sale.order.quote.line', 'quote_id' -
nameCharstring='Name' -
notesTextargs: 'Notes' -
operating_unit_idMany2one → operating.unitcomodel_name='operating.unit'required=Truestring='Operating Unit' -
sale_idMany2one → sale.ordercomodel_name='sale.order'string='Sale' -
stateSelectioncopy=Falsedefault='new'string='State'track_visibility='onchange' args: [('new', 'New'), ('sent', 'Sent'), ('received', 'Received')]
-
action_send(self) -
generate_crm_lead(self) -
generate_lead_description(self) -
generate_lead_description(self) -
prepare_crm_lead_values(self) -
write(self, vals)@api.multi
New fields (7)
-
nameCharrequired=Truestring='Description' -
price_unitFloatstring='Unit Price' -
product_idMany2one → product.productcomodel_name='product.product'string='Product' -
qtyFloatstring='Quantity' -
quote_idMany2one → sale.order.quotecomodel_name='sale.order.quote'string='Internal Quote' -
subtotalFloatstring='Subtotal' -
uom_idMany2one → uom.uomcomodel_name='uom.uom'string='Unit of Measure'
-
onchange_product_id(self)@api.multi@api.onchange('product_id')