eCommerce: charge payment fee
website_sale_charge_payment_fee · OCA/e-commerce
Health
77/100
good
-
Security22/251 minor finding
-
Activity25/25Last human commit 6 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.08 MB
Module directory on disk
Code analysis
0 migration notes
3 models
4 views
3 HTTP endpoints
Description
This module allows to associate generic payment fee to online payment methods. Thus, when website user select a payment method with additional fee, an additional sale order line will be added to online order
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
form_fee |
form_fee | ir.ui.view | qweb | Inherits payment.form |
method_form_fee |
Payment Method Fee | ir.ui.view | qweb | Inherits payment.method_form |
payment_fee |
Payment Fee | ir.ui.view | qweb | Inherits website_sale.total |
provider_form_fee_inherit |
payment_provider.form.fee.inherit | payment.provider | form | Inherits payment.payment_provider_form |
HTTP endpoints 3
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (inherited route override) | WebsiteSaleFee.process_express_checkout |
inherited | http | ALL | |
/shop/payment |
WebsiteSaleFee.shop_payment |
public | http | ALL | sudo website |
| (inherited route override) | WebsiteSaleFeePaymentPortal.shop_payment_transaction |
inherited | http | ALL | sudo |
Models touched 3
New fields (7)
-
charge_feeBooleanhelp='An extra fee line will be added to online order when using this payment method' args: 'Fee charged to customer' -
charge_fee_currency_idMany2one → res.currencystring='Fee Currency' args: 'res.currency' -
charge_fee_descriptionTextcompute='_compute_charge_fee_description' args: 'Fee Description' -
charge_fee_fixed_priceFloatmin_display_digits='Product Price' args: 'Fixed Price' -
charge_fee_percentageFloathelp='Percentage applied to order total' args: 'Percentage' -
charge_fee_product_idMany2one → product.productdomain="[('type', '=', 'service')]"string='Fee Product' args: 'product.product' -
charge_fee_typeSelectiondefault='fixed'string='Computation type' args: [('fixed', 'Fixed'), ('percentage', 'Percentage')]
No public methods.
New fields (1)
-
amount_payment_feeMonetarycompute='_compute_amount_payment_fee'store=Truestring='Payment Fee Amount'tracking=True
-
update_fee_line(self, provider)
New fields (1)
-
payment_fee_lineBooleanreadonly=True args: 'Payment fee line'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…