# -*- coding: utf-8 -*-

from odoo import models, fields, api
from ecpay_invoice.ecpay_main import *


# class ECPAYINVOICEAccountPayment(models.Model):
#     _inherit = 'account.payment'

    # 暫時不用在登記付款取得發票
    # 登記付款時自動幫未產生電子發票的invoice開立電子發票
    # def action_validate_invoice_payment(self):
    #     res = super(ECPAYINVOICEAccountPayment, self).action_validate_invoice_payment()
    #     for line in self.invoice_ids:
    #         if line.uniform_state == 'to invoice':
    #             line.create_ecpay_invoice()
    #     return res
