| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/margin-analysis |
| GIT | |
| GIT | https://github.com/OCA/margin-analysis.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/margin-analysis/tree/14.0/sale_margin_delivery_cost |
| VERSION | |
| VERSION | 1.0.0 |
| CATEGORY | |
| CATEGORY | Sales |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Open Source Integrators |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Open Source Integrators |
| COMMITTERS | |
| COMMITTERS | Daniel Reis, oca-travis, Weblate, OCA-git-bot |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/margin-analysis |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:41:07 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - sale_margin - sale_management - sale - sales_team - base - base_setup - web - bus - web_tour - payment - account - product - uom - analytic - portal - web_editor - http_routing - auth_signup - digest - resource - utm - delivery - sale_stock - stock_account - stock - barcodes |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_carrier_form |
Delivery Carrier: charge policy | delivery.carrier | field | Inherits delivery.view_delivery_carrier_form |
view_order_form_inherit |
Sale Order: other costs | sale.order | field | Inherits sale.view_order_form |
charge_policy
Selection
default='sale'
help='How shipping costs are added to the sales order: charged in a sales order line, estimated on an other costs line.'
required=True
string='Charging Policy'
args: [('sale', 'As SO Line'), ('other', 'As Other Cost')]
No public methods.
other_cost_ids
One2many → sale.order.other.cost
auto_join=True
copy=True
states={'cancel': [('readonly', True)], 'done': [('readonly', True)]}
string='Other Costs'
args: 'sale.order.other.cost', 'order_id'
set_delivery_line(self, carrier, amount)
company_id
Many2one
index=True
readonly=True
related='order_id.company_id'
store=True
is_delivery
Boolean
default=False
string='Is a Delivery'
name
Text
required=True
string='Description'
order_id
Many2one → sale.order
copy=False
index=True
ondelete='cascade'
required=True
string='Sales Order'
args: 'sale.order'
price_unit
Float
digits='Product Price'
args: 'Cost'
product_id
Many2one → product.product
change_default=True
check_company=True
domain="[('type', '!=', 'product'), '|', ('company_id', '=', False), ('company_id', '=', company_id)]"
ondelete='restrict'
string='Product'
args: 'product.product'
recompute_delivery_price
Boolean
related='order_id.recompute_delivery_price'
product_id_change(self)
| STATUS | |
|---|---|
| STATUS | Open migration PR - not merged yet for this version |
| REPOSITORY | |
| REPOSITORY | OCA/margin-analysis |
| PULL REQUEST | |
| PULL REQUEST | [16.0][MIG] sale_margin_delivery_cost: Migration to 16.0 (#191) |