mirror of
https://github.com/bringout/oca-ocb-pos.git
synced 2026-04-23 10:22:06 +02:00
15 lines
457 B
Python
15 lines
457 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import api, fields, models
|
|
|
|
|
|
class PosConfig(models.Model):
|
|
_inherit = 'pos.payment'
|
|
|
|
def _update_payment_line_for_tip(self, tip_amount):
|
|
"""Inherit this method to perform reauthorization or capture on electronic payment."""
|
|
self.ensure_one()
|
|
self.write({
|
|
"amount": self.amount + tip_amount,
|
|
})
|