Files
odoo_source/addons/pos_stripe/models/pos_session.py
T
lejeune quentin 143f632d96 [ADD] pos_stripe: Add the possibility to pay with Stripe in the POS
Add a stripe payment provider to the POS

To be able to use this payment provider, you must have configured Stripe in Odoo

closes odoo/odoo#92421

Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2022-06-02 12:05:00 +02:00

14 lines
393 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class PosSession(models.Model):
_inherit = 'pos.session'
def _loader_params_pos_payment_method(self):
result = super()._loader_params_pos_payment_method()
result['search_params']['fields'].append('stripe_serial_number')
return result