Repository
OCA/e-commerce · module folder · Try on Runboat
Module version
1.0.0
Category
Website
Folder size
0.08 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/e-commerce
Last tracking update
2026-08-07 09:06:25
Authors
Odoo Community Association (OCA), Quartile Limited, Agile Business Group, Studio73, AITIC S.A.S
Maintainers
Odoo Community Association (OCA), Quartile Limited, Agile Business Group, Studio73, AITIC S.A.S
Committers
Weblate, OCA-git-bot, oca-ci, miguel-S73
Odoo dependencies
Python dependencies
geoip2
System dependencies
None
Required by
None
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

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
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)HandlerAuthTypeMethodsFlags
(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_fee Boolean
    help='An extra fee line will be added to online order when using this payment method' args: 'Fee charged to customer'
  • charge_fee_currency_id Many2one → res.currency
    string='Fee Currency' args: 'res.currency'
  • charge_fee_description Text
    compute='_compute_charge_fee_description' args: 'Fee Description'
  • charge_fee_fixed_price Float
    min_display_digits='Product Price' args: 'Fixed Price'
  • charge_fee_percentage Float
    help='Percentage applied to order total' args: 'Percentage'
  • charge_fee_product_id Many2one → product.product
    domain="[('type', '=', 'service')]" string='Fee Product' args: 'product.product'
  • charge_fee_type Selection
    default='fixed' string='Computation type' args: [('fixed', 'Fixed'), ('percentage', 'Percentage')]
Public methods (0)

No public methods.

New fields (1)
  • amount_payment_fee Monetary
    compute='_compute_amount_payment_fee' store=True string='Payment Fee Amount' tracking=True
Public methods (1)
  • update_fee_line(self, provider)

New fields (1)
  • payment_fee_line Boolean
    readonly=True args: 'Payment fee line'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…