TIP: You can type at any time to perform a new search.

Security findings

Repository
OCA/delivery-carrier · module folder · Try on Runboat
Module version
1.0.0
Category
Delivery
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/delivery-carrier
Last tracking update
2026-08-07 08:42:52
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Weblate, OCA-git-bot, oca-ci, chaule97
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
Add delivery fees on Sales Orders based on the delivered packages.

A list of Package Fees can be configured on delivery methods. When a outgoing
transfer is done, for each package fee configured on the delivery
method, a new sales order line is created with:

- The product selected on the Package Fee
- The product name with the number of the transfer in the line's
  description (e.g. "Service Fee (WH/OUT/00036)")
- The quantity equal to the number of packages in the transfer
- The unit price equal to the price set on the product's pricelist (so
  it can be different per customer and even have different pricing
  depending on the number of packages)
- The taxes configured on the product, fiscal position applies if any.

Package Fee lines are added only if their quantity and price is above
zero.

Code Analysis info_outline

Views touched (1)
XML IDNameModelTypeStatus
view_delivery_carrier_form delivery.carrier.form delivery.carrier form Inherits stock_delivery.view_delivery_carrier_form_inherit_stock_delivery
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (1)
  • package_fee_ids One2many → delivery.package.fee
    comodel_name='delivery.package.fee' context={'active_test': False} inverse_name='carrier_id'
Public methods (0)

No public methods.

New fields (4)
  • active Boolean
    default=True
  • carrier_id Many2one → delivery.carrier
    comodel_name='delivery.carrier' ondelete='cascade' required=True
  • package_type_id Many2one → stock.package.type
    comodel_name='stock.package.type'
  • product_id Many2one → product.product
    comodel_name='product.product' ondelete='restrict' required=True
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • copy_data(self, default=None)

New fields (1)
  • package_fee_id Many2one → delivery.package.fee
    comodel_name='delivery.package.fee' default=False ondelete='restrict'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
59 days ago
Last activity
59 days ago
Repository
OCA/delivery-carrier
Pull request
[19.0][MIG] delivery_package_fee: Migration to 19.0 (#1231)