TIP: You can type at any time to perform a new search.
Point of Sale online payment
pos_online_payment · odoo/odoo
- Repository
- odoo/odoo · module folder
- Module version
- 0.1.0
- Category
- Uncategorized
- Folder size
- 1.12 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- Yes
- Website
- None
- Last tracking update
- 2026-08-20 22:13:24
- Authors
- Odoo S.A.
- Maintainers
- Odoo S.A.
- Committers
- Odoo Translation Bot, Christophe Monniez, Julien Castiaux, Tiffany Chang (tic), Gorash, Hubert Van De Walle, rhe-odoo, David Monnom (moda), Louis Wicket (wil), Pedram (PEBR), Dylan Kiss (dyki), Valeriya(vchu), tong-odoo, Sarah Bellefroid, Pedram (pebr), Louis Travaux, Parth Solanki[PASO], manv-afk, aamo-odoo, Joseph (jcb), paan-odoo, Jitendra Prajapat, David Monnom, Arthur Nanson, Bastien PIERRE, Krzysztof Magusiak (krma), Shubham Agarwal [SHAG], dhruv, vlst-odoo, Guillaume V, Meet Jivani [MEJI], Hadi El Yakhni, sjai-odoo, path-odoo, Traina Ludo, rpka-odoo, Stephane Vanmeerhaeghe (stva), abhk-odoo
Code Analysis ⓘ
Views touched (9)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
pay |
pay | ir.ui.view | qweb | New |
pay_confirmation |
pay_confirmation | ir.ui.view | qweb | New |
pay_summary |
pay_summary | ir.ui.view | qweb | New |
payment_transaction_form |
payment.transaction.form | payment.transaction | form | Inherits payment.payment_transaction_form |
pos_payment_method_view_form_inherit_pos_online_payment |
pos.payment.method.form.inherit.pos_online_payment | pos.payment.method | form | Inherits point_of_sale.pos_payment_method_view_form |
pos_payment_method_view_tree_inherit_pos_online_payment |
pos.payment.method.list.inherit.pos_online_payment | pos.payment.method | list | Inherits point_of_sale.pos_payment_method_view_tree |
res_config_settings_view_form |
res.config.settings.view.form.inherit.pos.online.payment | res.config.settings | form | Inherits point_of_sale.res_config_settings_view_form |
view_account_payment_form_inherit_pos_online_payment |
view.account.payment.form.inherit.pos_online_payment | account.payment | form | Inherits account.view_account_payment_form |
view_pos_payment_form |
pos.payment.form | pos.payment | form | Inherits point_of_sale.view_pos_payment_form |
HTTP endpoints (3)
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/pos/pay/<int:pos_order_id> |
PaymentPortal.pos_order_pay |
public | http | GET | sudo website |
/pos/pay/confirmation/<int:pos_order_id> |
PaymentPortal.pos_order_pay_confirmation |
public | http | GET | sudo website |
/pos/pay/transaction/<int:pos_order_id> |
PaymentPortal.pos_order_pay_transaction |
public | jsonrpc | ALL | website |
Models touched (7)
New fields (1)
-
pos_order_idMany2one → pos.orderhelp='The Point of Sale order linked to this payment'readonly=Truestring='POS Order' args: 'pos.order'
-
action_view_pos_order(self)Return the action for the view of the pos order linked to the payment.
New fields (1)
-
pos_order_idMany2one → pos.orderhelp='The Point of Sale order linked to the payment transaction'readonly=Truestring='POS Order' args: 'pos.order'
-
action_view_pos_order(self)Return the action for the view of the pos order linked to the transaction.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
next_online_payment_amountFloatdigits=0required=Falsestring='Next online payment amount to pay' -
online_payment_method_idMany2one → pos.payment.methodcompute='_compute_online_payment_method_id' args: 'pos.payment.method'
-
get_amount_unpaid(self) -
get_and_set_online_payments_data(self, next_online_payment_amount=False)Allows to update the amount to pay for the next online payment and get online payments already made and how much remains to be paid. If next_online_payment_amount is different than False, updates the next online payment amount, otherwise, the next online payment amount is unchanged. If next_online_payment_amount is 0 and the order has no successful online payment, is in draft state, is not a restaurant order and the pos.config has no trusted config, then the order is deleted from the database, because it was probably added for the online payment flow.
New fields (1)
-
online_account_payment_idMany2one → account.paymentreadonly=Truestring='Online accounting payment' args: 'account.payment'
-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
New fields (4)
-
has_an_online_payment_providerBooleancompute='_compute_has_an_online_payment_provider'readonly=True -
is_online_paymentBooleandefault=Falsehelp='Use this payment method for online payments (payments made on a web page with online payment providers)'string='Online Payment' -
online_payment_provider_idsMany2many → payment.providerdomain="[('is_published', '=', True), ('state', 'in', ['enabled', 'test'])]"string='Allowed Providers' args: 'payment.provider' -
typeSelectionselection_add=[('online', 'Online')]
-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…