Delivery Package Fees
delivery_package_fee · OCA/delivery-carrier
Health
67/100
fair
-
Security25/25No findings
-
Activity12/25Last human commit 23 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 13.0
Heuristic over the facts below, not an audit · How it's computed
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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idsOne2many → delivery.package.feecomodel_name='delivery.package.fee'context={'active_test': False}inverse_name='carrier_id'
No public methods.
New fields (4)
-
activeBooleandefault=True -
carrier_idMany2one → delivery.carriercomodel_name='delivery.carrier'ondelete='cascade'required=True -
package_type_idMany2one → stock.package.typecomodel_name='stock.package.type' -
product_idMany2one → product.productcomodel_name='product.product'ondelete='restrict'required=True
No public methods.
New fields (0)
No new fields.
Public methods (1)-
copy_data(self, default=None)
New fields (1)
-
package_fee_idMany2one → delivery.package.feecomodel_name='delivery.package.fee'default=Falseondelete='restrict'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…