21 lines
795 B
Python
21 lines
795 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import models, fields, api
|
|
|
|
|
|
class PosPaymentMethod(models.Model):
|
|
_inherit = 'pos.payment.method'
|
|
|
|
income_account_id = fields.Many2one(
|
|
'account.account',
|
|
string='Income Account',
|
|
domain=[('deprecated', '=', False)],
|
|
help='Account used for income lines when splitting by payment method. '
|
|
'If empty, the default income account from the product will be used.')
|
|
|
|
discount_account_id = fields.Many2one(
|
|
'account.account',
|
|
string='Discount Account',
|
|
domain=[('deprecated', '=', False)],
|
|
help='Account used for discount product lines when splitting by payment method. '
|
|
'If empty, the default discount account from the product will be used.')
|