'Create a new payment for the order'

def add_payment(self, data):

    args = self._prepare_bank_statement_line_payment_values(data)
    context = dict(self.env.context)
    context.pop('pos_session_id', False)
    self.env['account.bank.statement.line'].with_context(context).create(args)
    return args.get('statement_id', False)
