Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 23 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 13.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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.07 MB
Module directory on disk
Code analysis 0 migration notes 5 models 1 view 0 HTTP endpoints

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.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…

Loading…