Sales Margin after other estimated costs
sale_margin_delivery_cost · OCA/margin-analysis
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 57 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 14.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.05 MB
Module directory on disk
Code analysis
1 migration note
3 models
2 views
0 HTTP endpoints
Migration considerations
view_order_form_inherit— 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
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 |
|---|---|---|---|---|
view_carrier_form |
Delivery Carrier: charge policy | delivery.carrier | form | Inherits delivery.view_delivery_carrier_form |
view_order_form_inherit |
Sale Order: other costs | sale.order | form | Inherits sale.view_order_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
New fields (1)
-
charge_policySelectiondefault='sale'help='How shipping costs are added to the sales order: charged in a sales order line, estimated on an other costs line.'required=Truestring='Charging Policy' args: [('sale', 'As SO Line'), ('other', 'As Other Cost')]
No public methods.
New fields (1)
-
other_cost_idsOne2many → sale.order.other.costauto_join=Truecopy=Truestates={'cancel': [('readonly', True)], 'done': [('readonly', True)]}string='Other Costs' args: 'sale.order.other.cost', 'order_id'
-
set_delivery_line(self, carrier, amount)
New fields (7)
-
company_idMany2oneindex=Truereadonly=Truerelated='order_id.company_id'store=True -
is_deliveryBooleandefault=Falsestring='Is a Delivery' -
nameTextrequired=Truestring='Description' -
order_idMany2one → sale.ordercopy=Falseindex=Trueondelete='cascade'required=Truestring='Sales Order' args: 'sale.order' -
price_unitFloatdigits='Product Price' args: 'Cost' -
product_idMany2one → product.productchange_default=Truecheck_company=Truedomain="[('type', '!=', 'product'), '|', ('company_id', '=', False), ('company_id', '=', company_id)]"ondelete='restrict'string='Product' args: 'product.product' -
recompute_delivery_priceBooleanrelated='order_id.recompute_delivery_price'
-
product_id_change(self)@api.onchange('product_id')
Loading…