TIP: You can type at any time to perform a new search.
Sales Margin after other estimated costs
sale_margin_delivery_cost · OCA/margin-analysis
- Repository
- OCA/margin-analysis · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Sales
- Folder size
- 0.05 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/margin-analysis
- Last tracking update
- 2026-08-07 07:47:39
- Authors
- Odoo Community Association (OCA), Open Source Integrators
- Maintainers
- Odoo Community Association (OCA), Open Source Integrators
- Committers
- Daniel Reis, Weblate, OCA-git-bot, oca-travis
Code Analysis ⓘ
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')
- Status
- Open migration PR — not merged yet for this version
- CI status
- no CI data
- Open since
- 967 days ago
- Last activity
- 157 days ago
- Repository
- OCA/margin-analysis
- Pull request
- [16.0][MIG] sale_margin_delivery_cost: Migration to 16.0 (#191)
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 2 days ago
- Last activity
- 0 days ago
- Repository
- OCA/margin-analysis
- Pull request
- [MIG] sale_margin_delivery_cost: Migration to 19.0 (#280)