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
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
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_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')]
Public methods (0)

No public methods.

New fields (1)
  • 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'
Public methods (1)
  • set_delivery_line(self, carrier, amount)

New fields (7)
  • 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'
Public methods (1)
  • 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)